Commit 1e507f25 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't use nullptr as flag

parent f2a51c32
......@@ -142,7 +142,7 @@ void EngineExplorer::setInterval(const int interval)
void EngineExplorer::dataUpdated(const QString& source, const Plasma::DataEngine::Data& data)
{
QList<QStandardItem*> items = m_dataModel->findItems(source, nullptr);
QList<QStandardItem*> items = m_dataModel->findItems(source, Qt::MatchExactly);
if (items.isEmpty()) {
return;
......@@ -223,7 +223,7 @@ void EngineExplorer::showEngine(const QString& name)
void EngineExplorer::addSource(const QString& source)
{
//qDebug() << "adding" << source;
QList<QStandardItem*> items = m_dataModel->findItems(source, nullptr);
QList<QStandardItem*> items = m_dataModel->findItems(source, Qt::MatchExactly);
if (!items.isEmpty()) {
//qDebug() << "er... already there?";
return;
......@@ -246,7 +246,7 @@ void EngineExplorer::addSource(const QString& source)
void EngineExplorer::removeSource(const QString& source)
{
QList<QStandardItem*> items = m_dataModel->findItems(source, nullptr);
QList<QStandardItem*> items = m_dataModel->findItems(source, Qt::MatchExactly);
if (items.count() < 1) {
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment