Remove cppcheck warnings

This commit is contained in:
Alexander Bock
2014-12-16 21:54:53 +01:00
parent c9a3080c48
commit 5a7a518bad
16 changed files with 62 additions and 17 deletions

View File

@@ -512,7 +512,6 @@ bool ScriptEngine::registerLuaLibrary(lua_State* state, const LuaLibrary& librar
bool ScriptEngine::writeDocumentation(const std::string& filename, const std::string& type) const {
if (type == "text") {
// The additional space between the longest function name and the descriptions
const size_t AdditionalSpace = 5;
LDEBUG("Writing Lua documentation of type '" << type <<
"' to file '" << filename << "'");
std::ofstream file(filename);