]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathStream.cpp
Only set buffer if it is not null.
[lyx.git] / src / mathed / MathStream.cpp
index 3d759bc2611c3bcd7259718b8326f585d25f903b..588e219157efaa03093f2f60cb18a6c77c0a4e01 100644 (file)
@@ -19,7 +19,6 @@
 #include "TexRow.h"
 
 #include "support/docstring.h"
-#include "support/RefChanger.h"
 #include "support/textutils.h"
 
 #include <algorithm>
@@ -127,11 +126,8 @@ WriteStream & operator<<(WriteStream & ws, docstring const & s)
 
 WriteStream::WriteStream(otexrowstream & os, bool fragile, bool latex,
                                                 OutputType output, Encoding const * encoding)
-       : os_(os), fragile_(fragile), firstitem_(false), latex_(latex),
-         output_(output), pendingspace_(false), pendingbrace_(false),
-         textmode_(false), locked_(false), ascii_(false), canbreakline_(true),
-         mathsout_(false), ulemcmd_(NONE), line_(0), encoding_(encoding),
-         row_entry_(TexRow::row_none), mathclass_(false)
+       : os_(os), fragile_(fragile), latex_(latex),
+         output_(output), encoding_(encoding)
 {}
 
 
@@ -182,7 +178,7 @@ void WriteStream::asciiOnly(bool ascii)
 
 Changer WriteStream::changeRowEntry(TexRow::RowEntry entry)
 {
-       return make_change(row_entry_, entry);
+       return changeVar(row_entry_, entry);
 }