]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathStream.cpp
... and RELEASE-NOTES
[lyx.git] / src / mathed / MathStream.cpp
index c1c0830f5a9be2a52803d7b30976894948f82d1c..eb567ff19b109db8494f1f01906766a5380a4caf 100644 (file)
@@ -16,6 +16,8 @@
 #include "MathData.h"
 #include "MathExtern.h"
 
+#include "TexRow.h"
+
 #include "support/docstring.h"
 #include "support/RefChanger.h"
 #include "support/textutils.h"
@@ -128,7 +130,8 @@ WriteStream::WriteStream(otexrowstream & os, bool fragile, bool latex,
        : os_(os), fragile_(fragile), firstitem_(false), latex_(latex),
          output_(output), pendingspace_(false), pendingbrace_(false),
          textmode_(false), locked_(0), ascii_(0), canbreakline_(true),
-         line_(0), encoding_(encoding), row_entry_(TexRow::row_none)
+         line_(0), encoding_(encoding),
+         row_entry_(make_unique<RowEntry>(TexRow::row_none))
 {}
 
 
@@ -177,17 +180,17 @@ void WriteStream::asciiOnly(bool ascii)
 }
 
 
-Changer WriteStream::changeRowEntry(TexRow::RowEntry entry)
+Changer WriteStream::changeRowEntry(RowEntry entry)
 {
-       return make_change(row_entry_, entry);
+       return make_change(*row_entry_, entry);
 }
 
 
 bool WriteStream::startOuterRow()
 {
-       if (TexRow::isNone(row_entry_))
+       if (TexRow::isNone(*row_entry_))
                return false;
-       return texrow().start(row_entry_);
+       return texrow().start(*row_entry_);
 }