Gui: fix warnings reported by GH Actions:

* Fix trailing spaces
* Replace tabs
* Mark constructors with one argument explicit
* Fix typos
* Include FCGlobal.h to fix parsing errors
This commit is contained in:
wmayer
2022-11-11 09:56:43 +01:00
parent 5f4dbf7b4c
commit 21f47cf2ec
11 changed files with 30 additions and 29 deletions

View File

@@ -306,7 +306,7 @@ PyObject* CommandPy::createCustomCommand(PyObject* args, PyObject* kw)
auto macro = new MacroCommand(name.c_str(), false);
commandManager.addCommand(macro);
macro->setScriptName(macroFile);
macro->setScriptName(macroFile);
if (menuTxt)
macro->setMenuText(menuTxt);
@@ -338,8 +338,8 @@ PyObject* CommandPy::removeCustomCommand(PyObject* args)
CommandManager& commandManager = Application::Instance->commandManager();
std::vector<Command*> macros = commandManager.getGroupCommands("Macros");
auto action = std::find_if(macros.begin(), macros.end(), [actionName](const Command* c) {
return std::string(c->getName()) == std::string(actionName);
auto action = std::find_if(macros.begin(), macros.end(), [actionName](const Command* c) {
return std::string(c->getName()) == std::string(actionName);
});
if (action != macros.end()) {