]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathMacroArgument.C
cursor is no more damaging the background. L-shaped cursor is broken right now....
[lyx.git] / src / mathed / MathMacroArgument.C
index 5f0cf201027a4621a61f18088f3b3e0b261eb689..d73877c85a0269b63149b1d1ca8f03db60111e5b 100644 (file)
 
 #include "MathMacroArgument.h"
 #include "InsetMathMacro.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
 #include "MathSupport.h"
 #include "debug.h"
 
+
+namespace lyx {
+
 using std::endl;
 using std::auto_ptr;
 using std::size_t;
+using std::vector;
 
 
 MathMacroArgument::MathMacroArgument(size_t n)
@@ -29,8 +33,9 @@ MathMacroArgument::MathMacroArgument(size_t n)
                lyxerr << "MathMacroArgument::MathMacroArgument: wrong Argument id: "
                        << n << endl;
        }
+       str_.resize(3);
        str_[0] = '#';
-       str_[1] = static_cast<unsigned char>('0' + n);
+       str_[1] = static_cast<char_type>('0' + n);
        str_[2] = '\0';
 }
 
@@ -65,3 +70,6 @@ void MathMacroArgument::normalize(NormalStream & os) const
 {
        os << "[macroarg " << str_ << "] ";
 }
+
+
+} // namespace lyx