]> git.lyx.org Git - lyx.git/blobdiff - src/undo.C
don't pass temporary string objects as parameters
[lyx.git] / src / undo.C
index d40de5d33cc6662103a663c0a63818bf46b83b79..b60d0e11b95f8c3d3fddbbd00d643ad1c4d003c7 100644 (file)
@@ -29,7 +29,8 @@
 
 #include <algorithm>
 
-using lyx::pit_type;
+
+namespace lyx {
 
 using std::advance;
 using std::endl;
@@ -169,8 +170,7 @@ bool textUndoOrRedo(BufferView & bv,
                // gained by storing just 'a few' paragraphs (most if not
                // all math inset cells have just one paragraph!)
                //lyxerr << "undo.array=" << undo.array <<endl;
-               // FIXME UNICODE
-               asArray(lyx::from_utf8(undo.array), dit.cell());
+               asArray(undo.array, dit.cell());
        } else {
                // Some finer machinery is needed here.
                LyXText * text = dit.text();
@@ -292,3 +292,6 @@ void recordUndoFullDocument(BufferView * bv)
        );
        undo_finished = false;
 }
+
+
+} // namespace lyx