mirror of https://github.com/Icinga/icinga2.git
Remove unnecessary SubStr call
This commit is contained in:
parent
c426655c44
commit
7aaa6975fc
|
@ -328,7 +328,7 @@ void CLICommand::ShowCommands(int argc, char **argv, po::options_description *vi
|
||||||
pword = "";
|
pword = "";
|
||||||
} else if (aword.GetLength() > 1 && aword[0] == '-' && aword[1] != '-') {
|
} else if (aword.GetLength() > 1 && aword[0] == '-' && aword[1] != '-') {
|
||||||
aname = aword.SubStr(0, 2);
|
aname = aword.SubStr(0, 2);
|
||||||
prefix = aword.SubStr(0, 2);
|
prefix = aname;
|
||||||
pword = aword.SubStr(2);
|
pword = aword.SubStr(2);
|
||||||
} else {
|
} else {
|
||||||
goto complete_option;
|
goto complete_option;
|
||||||
|
|
Loading…
Reference in New Issue