forked from qt-creator/qt-creator
ProjectExplorer: Modernize
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default modernize-use-transparent-functors Change-Id: Iebed22caa2e733d292f334e956e3d16b844e14e3 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -890,7 +890,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
~RunControlPrivate()
|
||||
~RunControlPrivate() override
|
||||
{
|
||||
QTC_CHECK(state == RunControlState::Finished || state == RunControlState::Initialized);
|
||||
disconnect();
|
||||
@@ -1048,7 +1048,7 @@ RunWorkerFactory::WorkerCreator RunControl::producer(RunConfiguration *runConfig
|
||||
if (candidates.empty())
|
||||
return {};
|
||||
|
||||
const auto higherPriority = std::bind(std::greater<int>(),
|
||||
const auto higherPriority = std::bind(std::greater<>(),
|
||||
std::bind(&RunWorkerFactory::priority, std::placeholders::_1),
|
||||
std::bind(&RunWorkerFactory::priority, std::placeholders::_2));
|
||||
const auto bestFactory = std::max_element(candidates.begin(), candidates.end(), higherPriority);
|
||||
|
||||
Reference in New Issue
Block a user