summaryrefslogtreecommitdiff
path: root/src/cam/main.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-07 01:53:59 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-22 17:13:50 +0300
commite548e583cc6452144dc41d57acea9ceddbc6ab89 (patch)
treea9e338b5229afbf149b18a6310ac3ef8d64546bb /src/cam/main.cpp
parent2eeb431a93942c923cf6606b15ee42c96fb7570b (diff)
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>
Diffstat (limited to 'src/cam/main.cpp')
-rw-r--r--src/cam/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index 19ed9837..03e62f30 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -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;