]> git.lyx.org Git - lyx.git/blobdiff - src/texstream.cpp
Introduce the notion of math class
[lyx.git] / src / texstream.cpp
index eb1834b5de74e84486f429025347fde7592f6828..5b0e92759173f211ec2afeebc2d17d5f72b4ea37 100644 (file)
@@ -78,8 +78,9 @@ size_t otexstringstream::length()
 
 TexString otexstringstream::release()
 {
-       TexString ts{ods_.str(), TexRow()};
-       swap(ts.texrow, texrow());
+       TexString ts(ods_.str(), move(texrow()));
+       // reset this
+       texrow() = TexRow();
        ods_.clear();
        ods_.str(docstring());
        return ts;