diff --git a/String.cpp b/String.cpp index 62e276f..5785ae5 100644 --- a/String.cpp +++ b/String.cpp @@ -163,7 +163,7 @@ std::istream& operator>>(std::istream& is, String& str) if (str._str) // if there is some old data, release it str._str->operator--(); - str._str = new StringValue(data.release()); // get ownership of final data + str._str = new StringValue(data.release()); // set owner of final data return is; }