LGTM: [skip ci] fix: Declaration hides parameter
A local variable hides a parameter. This may be confusing. Consider renaming one of them.
This commit is contained in:
@@ -1354,9 +1354,9 @@ bool Application::activateWorkbench(const char* name)
|
||||
Workbench* newWb = WorkbenchManager::instance()->active();
|
||||
if (newWb) {
|
||||
if (!Instance->d->startingUp) {
|
||||
std::string name = newWb->name();
|
||||
std::string nameWb = newWb->name();
|
||||
App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/General")->
|
||||
SetASCII("LastModule", name.c_str());
|
||||
SetASCII("LastModule", nameWb.c_str());
|
||||
}
|
||||
newWb->activated();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user