Skip to content

Commit bed72d6

Browse files
committed
CZString assignment operator - pass by reference
The assignment operator of CZString is not passed by reference. It is reported as issue in static analyser tool.
1 parent 9dad198 commit bed72d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_json/json_value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ void Value::CZString::swap(CZString& other) {
247247
std::swap(index_, other.index_);
248248
}
249249

250-
Value::CZString& Value::CZString::operator=(CZString other) {
250+
Value::CZString& Value::CZString::operator=(CZString& other) {
251251
swap(other);
252252
return *this;
253253
}

0 commit comments

Comments
 (0)