diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index d0412a36e5..6e882e1dde 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -1938,7 +1938,7 @@ class ParseError { std::string bad_value; public: - ParseError(const std::string bad_value_) :bad_value(bad_value_) {} + ParseError(const std::string &bad_value_) :bad_value(bad_value_) {} std::string toString(const std::string ¶m) const { std::ostringstream out;