Skip to content
Snippets Groups Projects
Commit 7ed19312 authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Fix code format

parent 3949107a
No related branches found
No related tags found
1 merge request!346Resolve "Frame/Capture/Feature/Landmark Other as list/vectors in FactorBase"
Pipeline #5061 passed
...@@ -17,11 +17,11 @@ class CheckLog ...@@ -17,11 +17,11 @@ class CheckLog
is_consistent_ = true; is_consistent_ = true;
explanation_ = ""; explanation_ = "";
} }
CheckLog(bool consistent, std::string explanation) CheckLog(bool _consistent, std::string _explanation)
{ {
is_consistent_ = consistent; is_consistent_ = _consistent;
if (not consistent) if (not _consistent)
explanation_ = explanation; explanation_ = _explanation;
else else
explanation_ = ""; explanation_ = "";
} }
...@@ -31,12 +31,12 @@ class CheckLog ...@@ -31,12 +31,12 @@ class CheckLog
is_consistent_ = is_consistent_ and l.is_consistent_; is_consistent_ = is_consistent_ and l.is_consistent_;
explanation_ = explanation_ + l.explanation_; explanation_ = explanation_ + l.explanation_;
} }
void addAssertion(bool condition, std::stringstream& stream) void addAssertion(bool _condition, std::stringstream& _stream)
{ {
auto cl = CheckLog(condition, stream.str()); auto cl = CheckLog(_condition, _stream.str());
this->compose(cl); this->compose(cl);
// Clear inconsistency_explanation // Clear inconsistency_explanation
std::stringstream().swap(stream); std::stringstream().swap(_stream);
} }
}; };
} // namespace wolf } // namespace wolf
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment