mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor(startup): check parser args with empty(), not size()
This commit is contained in:
parent
ea2510157c
commit
b9876f3342
|
@ -295,7 +295,7 @@ int main(int argc, char* argv[])
|
|||
profileName = settings.getCurrentProfile();
|
||||
}
|
||||
|
||||
if (parser.positionalArguments().size() == 0) {
|
||||
if (parser.positionalArguments().empty()) {
|
||||
eventType = "activate";
|
||||
} else {
|
||||
firstParam = parser.positionalArguments()[0];
|
||||
|
|
Loading…
Reference in New Issue
Block a user