made some clarifications in one of the comments in class String
This commit is contained in:
parent
de6273cc63
commit
6d1245bf0b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user