mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 19:59:46 +00:00
* MathMacroArgument.C (MathMacroArgument): do not use convert<> since
it may be too slow. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15996 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f966f2d1b7
commit
502f07307f
@ -15,7 +15,6 @@
|
|||||||
#include "InsetMathMacro.h"
|
#include "InsetMathMacro.h"
|
||||||
#include "MathStream.h"
|
#include "MathStream.h"
|
||||||
#include "MathSupport.h"
|
#include "MathSupport.h"
|
||||||
#include "support/convert.h"
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
|
||||||
@ -34,7 +33,13 @@ MathMacroArgument::MathMacroArgument(size_t n)
|
|||||||
lyxerr << "MathMacroArgument::MathMacroArgument: wrong Argument id: "
|
lyxerr << "MathMacroArgument::MathMacroArgument: wrong Argument id: "
|
||||||
<< n << endl;
|
<< 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user