summaryrefslogtreecommitdiff
path: root/src/cam/main.cpp
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-08-06 14:01:00 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-08-10 17:38:56 +0200
commit6b88163343dc7aec6a6e5d3e964bba7b14f83dd6 (patch)
tree084784a5ca5205d5407403c568ee38882c38b1d3 /src/cam/main.cpp
parentc29ee8ef73da6b93f6800b5699ba86d9f1976f36 (diff)
cam: Rename cameraName variable
When converting Camera::name() to Camera::id() one variable in cam was left unnoticed, rename it to cameraId. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/cam/main.cpp')
-rw-r--r--src/cam/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index fb7bcbd9..cc3facd5 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -95,13 +95,13 @@ int CamApp::init(int argc, char **argv)
}
if (options_.isSet(OptCamera)) {
- const std::string &cameraName = options_[OptCamera];
+ const std::string &cameraId = options_[OptCamera];
char *endptr;
- unsigned long index = strtoul(cameraName.c_str(), &endptr, 10);
+ unsigned long index = strtoul(cameraId.c_str(), &endptr, 10);
if (*endptr == '\0' && index > 0 && index <= cm_->cameras().size())
camera_ = cm_->cameras()[index - 1];
else
- camera_ = cm_->get(cameraName);
+ camera_ = cm_->get(cameraId);
if (!camera_) {
std::cout << "Camera "