TexString otexstringstream::release()
{
- TexString ts{ods_.str(), TexRow()};
- swap(ts.texrow, texrow());
- ods_ = odocstringstream();
+ TexString ts(ods_.str(), move(texrow()));
+ // reset this
+ texrow() = TexRow();
+ ods_.clear();
+ ods_.str(docstring());
return ts;
}