]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPhantom.cpp
Some things did not need to be mutable after all
[lyx.git] / src / insets / InsetPhantom.cpp
index 84971fd6e825c4409f0d4bb6d1b3116be8e04743..8fb9d949c74cb5ac08216b211f50bbf6f048d6d8 100644 (file)
@@ -28,6 +28,7 @@
 #include "Lexer.h"
 #include "MetricsInfo.h"
 #include "OutputParams.h"
+#include "texstream.h"
 #include "TextClass.h"
 
 #include "support/docstream.h"
@@ -359,13 +360,13 @@ int InsetPhantom::plaintext(odocstringstream & os,
 
 int InsetPhantom::docbook(odocstream & os, OutputParams const & runparams) const
 {
-       string cmdname;
+       docstring cmdname;
        switch (params_.type) {
        case InsetPhantomParams::Phantom:
        case InsetPhantomParams::HPhantom:
        case InsetPhantomParams::VPhantom:
        default:
-               cmdname = "phantom";
+               cmdname = from_ascii("phantom");
                break;
        }
        os << "<" + cmdname + ">";