it may be too slow.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15996
a592a061-630c-0410-9148-
cb99ea01b6c8
#include "InsetMathMacro.h"
#include "MathStream.h"
#include "MathSupport.h"
-#include "support/convert.h"
#include "debug.h"
lyxerr << "MathMacroArgument::MathMacroArgument: wrong Argument id: "
<< n << endl;
}
- str_ = '#' + convert<docstring>(n);
+ // The profiler tells us not to use
+ // str_ = '#' + convert<docstring>(n);
+ // so we do the conversion of n to ASCII manually.
+ // This works because 1 <= n <= 9.
+ str_.resize(2);
+ str_[0] = '#';
+ str_[1] = '0' + n;
}