Skip to content

Commit

Permalink
Fix #8: Constructor delegation and typo in assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelmassot committed Nov 17, 2014
1 parent 5875633 commit 148685a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/avt_vimba_camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ static const char* State[] = {
"Ok"};


AvtVimbaCamera::AvtVimbaCamera() {
AvtVimbaCamera(ros::this_node::getName().c_str());
AvtVimbaCamera::AvtVimbaCamera() : AvtVimbaCamera(ros::this_node::getName().c_str()) {

}

AvtVimbaCamera::AvtVimbaCamera(std::string name) {
Expand Down Expand Up @@ -473,7 +473,7 @@ bool AvtVimbaCamera::setFeatureValue(const std::string& feature_str,
if (writable) {
ROS_DEBUG_STREAM("Setting feature " << feature_str << " value " << val);
VmbFeatureDataType data_type;
err == vimba_feature_ptr->GetDataType(data_type);
err = vimba_feature_ptr->GetDataType(data_type);
if (VmbErrorSuccess == err) {
if (data_type == VmbFeatureDataEnum) {
bool available;
Expand Down

0 comments on commit 148685a

Please sign in to comment.