mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 10:25:05 +03:00
cam: Make CamApp::cameraName() static
The CamApp::cameraName() doesn't need to access any member of the CamApp class. Make it static. While at it, drop an unneeded const from the return value. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
2eeb431a93
commit
e548e583cc
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ private:
|
|||
int infoConfiguration();
|
||||
int run();
|
||||
|
||||
std::string const cameraName(const Camera *camera);
|
||||
static std::string cameraName(const Camera *camera);
|
||||
|
||||
static CamApp *app_;
|
||||
OptionsParser::Options options_;
|
||||
|
@ -319,7 +319,7 @@ int CamApp::run()
|
|||
return 0;
|
||||
}
|
||||
|
||||
std::string const CamApp::cameraName(const Camera *camera)
|
||||
std::string CamApp::cameraName(const Camera *camera)
|
||||
{
|
||||
const ControlList &props = camera->properties();
|
||||
bool addModel = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue