]> git.lyx.org Git - features.git/commitdiff
Trust Andre'
authorEnrico Forestieri <forenr@lyx.org>
Thu, 19 Jun 2008 09:17:57 +0000 (09:17 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 19 Jun 2008 09:17:57 +0000 (09:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25319 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathNest.cpp
src/mathed/MathMacroTemplate.cpp

index 85d0be52b8435f39b4ed592e6f6f50f01b1c6701..d5675487874320266cd35a6cf3c321fa0ce7afe6 100644 (file)
@@ -337,7 +337,7 @@ MathData InsetMathNest::glue() const
 void InsetMathNest::write(WriteStream & os) const
 {
        ModeSpecifier specifier(os, currentMode());
-       docstring const latex_name = name().c_str();
+       docstring const latex_name = name();
        os << '\\' << latex_name;
        for (size_t i = 0; i < nargs(); ++i)
                os << '{' << cell(i) << '}';
@@ -352,7 +352,7 @@ void InsetMathNest::write(WriteStream & os) const
 
 void InsetMathNest::normalize(NormalStream & os) const
 {
-       os << '[' << name().c_str();
+       os << '[' << name();
        for (size_t i = 0; i < nargs(); ++i)
                os << ' ' << cell(i);
        os << ']';
index e889deb226b2f4ba30bd3f95f1afd9b671501b14..11b9ae90c6e096f20cf30691bc403e745bae272b 100644 (file)
@@ -1141,7 +1141,7 @@ void MathMacroTemplate::write(WriteStream & os, bool overwriteRedefinition) cons
                        else
                                os << "\\newcommandx";
 
-                       os << "\\" << name().c_str()
+                       os << "\\" << name()
                           << "[" << numargs_ << "]"
                           << "[usedefault, addprefix=\\global";
                        for (int i = 0; i < optionals_; ++i) {
@@ -1158,7 +1158,7 @@ void MathMacroTemplate::write(WriteStream & os, bool overwriteRedefinition) cons
                } else {
                        // macros without optionals use standard _global_ \def macros:
                        // \global\def\foo#1#2{#1,#2}
-                       os << "\\global\\def\\" << name().c_str();
+                       os << "\\global\\def\\" << name();
                        docstring param = from_ascii("#0");
                        for (int i = 1; i <= numargs_; ++i) { 
                                param[1] = '0' + i;
@@ -1173,7 +1173,7 @@ void MathMacroTemplate::write(WriteStream & os, bool overwriteRedefinition) cons
                        os << "\\renewcommand";
                else
                        os << "\\newcommand";
-               os << "{\\" << name().c_str() << '}';
+               os << "{\\" << name() << '}';
                if (numargs_ > 0)
                        os << '[' << numargs_ << ']';