forked from qt-creator/qt-creator
ProjectExplorer: fix warning about casting something to bool
Change-Id: I258a4a2d0a89cd28d6196b8d79a78b94cfc9553c Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
892f33568e
commit
fd5b5fc26f
@@ -448,7 +448,7 @@ public:
|
|||||||
template <class Config, class Worker>
|
template <class Config, class Worker>
|
||||||
static void registerWorker(Core::Id runMode, int priority = 0)
|
static void registerWorker(Core::Id runMode, int priority = 0)
|
||||||
{
|
{
|
||||||
auto constraint = [](RunConfiguration *runConfig) { return qobject_cast<Config *>(runConfig); };
|
auto constraint = [](RunConfiguration *runConfig) { return qobject_cast<Config *>(runConfig) != nullptr; };
|
||||||
auto producer = [](RunControl *rc) { return new Worker(rc); };
|
auto producer = [](RunControl *rc) { return new Worker(rc); };
|
||||||
addWorkerFactory({runMode, constraint, producer, priority});
|
addWorkerFactory({runMode, constraint, producer, priority});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user