PVS: V547 Expression is always true/false

This commit is contained in:
wmayer
2020-07-17 12:04:49 +02:00
parent 02f45721d6
commit 1b2a7ef6fc
3 changed files with 17 additions and 19 deletions

View File

@@ -178,7 +178,7 @@ TaskWatcherPython::TaskWatcherPython(const Py::Object& o)
Gui::TaskView::TaskBox *tb = 0;
if (watcher.hasAttr(std::string("commands"))) {
if (!tb) tb = new Gui::TaskView::TaskBox(icon, title, true, 0);
tb = new Gui::TaskView::TaskBox(icon, title, true, 0);
Py::Sequence cmds(watcher.getAttr(std::string("commands")));
CommandManager &mgr = Gui::Application::Instance->commandManager();
for (Py::Sequence::iterator it = cmds.begin(); it != cmds.end(); ++it) {