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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user