+ fixes #0002075: Analysis of FreeCAD by PVS-Studio static analyzer
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user