mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 12:04:16 +01:00
camera: migrate logging macros
This commit is contained in:
parent
6e410dcef5
commit
3cb91338e9
@ -25,7 +25,7 @@ std::unique_ptr<CameraInterface> CreateCamera(const std::string& name, const std
|
||||
}
|
||||
|
||||
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>();
|
||||
}
|
||||
@ -39,7 +39,7 @@ std::unique_ptr<CameraInterface> CreateCameraPreview(const std::string& name,
|
||||
}
|
||||
|
||||
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>();
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ public:
|
||||
* @param flip The image flip to apply
|
||||
* @returns a unique_ptr to the created camera object.
|
||||
* 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.
|
||||
*/
|
||||
virtual std::unique_ptr<CameraInterface> CreatePreview(const std::string& config, int width,
|
||||
|
Loading…
Reference in New Issue
Block a user