+ fixes #0002075: Analysis of FreeCAD by PVS-Studio static analyzer

This commit is contained in:
wmayer
2015-05-01 16:56:31 +02:00
parent d8f63bcfd1
commit dd2b39ddd6
21 changed files with 59 additions and 91 deletions

View File

@@ -270,9 +270,9 @@ void Application::renameDocument(const char *OldName, const char *NewName)
DocMap[NewName] = temp;
signalRenameDocument(*temp);
}
else
Base::Exception("Application::renameDocument(): no document with this name to rename!");
else {
throw Base::Exception("Application::renameDocument(): no document with this name to rename!");
}
}
Document* Application::newDocument(const char * Name, const char * UserName)
@@ -1464,8 +1464,6 @@ pair<string, string> customSyntax(const string& s)
return make_pair(string("fg"), string("null"));
else if (s.find("-button") == 0)
return make_pair(string("button"), string("null"));
else if (s.find("-button") == 0)
return make_pair(string("button"), string("null"));
else if (s.find("-btn") == 0)
return make_pair(string("btn"), string("null"));
else if (s.find("-name") == 0)