No real changes, just pass original command to commandBelongs().

Don't transform commandBelongs() argument to lower case as it's done inside
the function itself anyhow -- and it will need the original case soon.
This commit is contained in:
Vadim Zeitlin 2014-08-25 16:45:28 +02:00
commit f0ed5e90d7

View file

@ -133,10 +133,7 @@ void DoxygenParser::printTree(const DoxygenEntityList &rootList)
int DoxygenParser::commandBelongs(const std::string &theCommand)
{
std::string smallString = stringToLower(theCommand);
//cout << " Looking for command " << theCommand << endl;
DoxyCommandsMapIt it = doxygenCommands.find(smallString);
DoxyCommandsMapIt it = doxygenCommands.find(stringToLower(theCommand));
if (it != doxygenCommands.end()) {
return it->second;
@ -899,7 +896,7 @@ int DoxygenParser::addCommand(const std::string &commandString,
return 1;
}
switch (commandBelongs(theCommand)) {
switch (commandBelongs(commandString)) {
case SIMPLECOMMAND:
return addSimpleCommand(theCommand, doxyList);
case COMMANDWORD: