Skip to content

Commit 456424e

Browse files
committed
CZString assignment operator - pass by reference
Pass by reference in assignment operator.
1 parent bed72d6 commit 456424e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/json/value.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class JSON_API Value {
213213
CZString(char const* str, unsigned length, DuplicationPolicy allocate);
214214
CZString(CZString const& other);
215215
~CZString();
216-
CZString& operator=(CZString other);
216+
CZString& operator=(CZString& other);
217217
bool operator<(CZString const& other) const;
218218
bool operator==(CZString const& other) const;
219219
ArrayIndex index() const;

0 commit comments

Comments
 (0)