Trust Andre'

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25319 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2008-06-19 09:17:57 +00:00
parent c691839abe
commit ab9a074f20
2 changed files with 5 additions and 5 deletions

View 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 << ']';

View 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_ << ']';