code cleanup from cppcheck

This commit is contained in:
Mark Vejvoda
2013-06-15 01:43:44 +00:00
parent c646d0371c
commit 1b3ee1503b
9 changed files with 19 additions and 20 deletions

View File

@@ -423,7 +423,7 @@ MainWindow::MainWindow( std::pair<string,vector<string> > unitToLoad,
if(modelPath != "") {
fileDialog->SetPath(ToUnicode(modelPath));
}
string userData = Config::getInstance().getString("UserData_Root","");
string userData = config.getString("UserData_Root","");
if(userData != "") {
endPathWithSlash(userData);
}