Gui: use empty

This commit is contained in:
berniev
2022-08-06 03:13:53 +10:00
committed by wwmayer
parent a00faca147
commit d88729d2c4
33 changed files with 154 additions and 154 deletions

View File

@@ -994,7 +994,7 @@ void GestureNavigationStyle::onRollGesture(int direction)
cmd = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View")->GetASCII("GestureRollBackCommand");
}
if (cmd.size() == 0)
if (cmd.empty())
return;
std::stringstream code;
code << "Gui.runCommand(\"" << cmd << "\")";