mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 01:22:37 -06:00
camera: migrate logging macros
This commit is contained in:
parent
6e410dcef5
commit
3cb91338e9
2 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ std::unique_ptr<CameraInterface> CreateCamera(const std::string& name, const std
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name != "blank") {
|
if (name != "blank") {
|
||||||
LOG_ERROR(Service_CAM, "Unknown camera \"%s\"", name.c_str());
|
NGLOG_ERROR(Service_CAM, "Unknown camera {}", name);
|
||||||
}
|
}
|
||||||
return std::make_unique<BlankCamera>();
|
return std::make_unique<BlankCamera>();
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ std::unique_ptr<CameraInterface> CreateCameraPreview(const std::string& name,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name != "blank") {
|
if (name != "blank") {
|
||||||
LOG_ERROR(Service_CAM, "Unknown camera \"%s\"", name.c_str());
|
NGLOG_ERROR(Service_CAM, "Unknown camera {}", name);
|
||||||
}
|
}
|
||||||
return std::make_unique<BlankCamera>();
|
return std::make_unique<BlankCamera>();
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ public:
|
||||||
* @param flip The image flip to apply
|
* @param flip The image flip to apply
|
||||||
* @returns a unique_ptr to the created camera object.
|
* @returns a unique_ptr to the created camera object.
|
||||||
* Note: The default implementation for this is to call Create(). Derived classes may have other
|
* Note: The default implementation for this is to call Create(). Derived classes may have other
|
||||||
* Implementations. For example, A dialog may be used instead of LOG_ERROR when error
|
* Implementations. For example, A dialog may be used instead of NGLOG_ERROR when error
|
||||||
* occurs.
|
* occurs.
|
||||||
*/
|
*/
|
||||||
virtual std::unique_ptr<CameraInterface> CreatePreview(const std::string& config, int width,
|
virtual std::unique_ptr<CameraInterface> CreatePreview(const std::string& config, int width,
|
||||||
|
|
Loading…
Reference in a new issue