1
0
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:
jenli669 2019-06-24 01:17:21 +02:00
parent ea2510157c
commit b9876f3342
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E

View File

@ -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];