#include "support/convert.h"
using lyx::support::prefixIs;
-using lyx::support::strToInt;
using std::max;
using std::string;
lex.printError("InsetCommand: Parse error: `$$Token'");
if (prefixIs(getContents(), key_prefix)) {
- int key = strToInt(getContents().substr(key_prefix.length()));
+ int const key = convert<int>(getContents().substr(key_prefix.length()));
key_counter = max(key_counter, key);
}
}