fix iterator bug
This commit is contained in:
parent
de6e93da66
commit
2875656d82
|
@ -63,11 +63,11 @@ void create_controller::handleCommand(std::vector<std::string> ¶meters)
|
|||
{
|
||||
if(*iter=="-n"||*iter=="--namespace")
|
||||
{
|
||||
parameters.erase(iter);
|
||||
iter=parameters.erase(iter);
|
||||
if(iter!=parameters.end())
|
||||
{
|
||||
namespaceName=*iter;
|
||||
parameters.erase(iter);
|
||||
iter=parameters.erase(iter);
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue