Fix error reporting for special characters in Doxygen parsing code

Don't use "+" with a "const char*" and "char", this doesn't do what the code
intended to happen.

Thanks clang for the -Wstring-plus-int warning.
This commit is contained in:
Vadim Zeitlin 2016-12-12 22:13:25 +01:00
commit 31fcda945c

View file

@ -1400,7 +1400,7 @@ size_t DoxygenParser::processNormalComment(size_t pos, const std::string &line)
default:
m_tokenListIt = m_tokenList.end();
printListError(WARN_DOXYGEN_COMMAND_ERROR,
"Unknown special character: " + line[pos]);
std::string("Unknown special character: ") + line[pos]);
}
return pos;