mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-20 10:55:07 +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 infoConfiguration();
|
||||||
int run();
|
int run();
|
||||||
|
|
||||||
std::string const cameraName(const Camera *camera);
|
static std::string cameraName(const Camera *camera);
|
||||||
|
|
||||||
static CamApp *app_;
|
static CamApp *app_;
|
||||||
OptionsParser::Options options_;
|
OptionsParser::Options options_;
|
||||||
|
@ -319,7 +319,7 @@ int CamApp::run()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string const CamApp::cameraName(const Camera *camera)
|
std::string CamApp::cameraName(const Camera *camera)
|
||||||
{
|
{
|
||||||
const ControlList &props = camera->properties();
|
const ControlList &props = camera->properties();
|
||||||
bool addModel = true;
|
bool addModel = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue