Modernize code

wilder
Laurent Montel 5 years ago
parent 75d158131b
commit d16f8334a4
  1. 2
      src/editor/codec/codecaction.cpp
  2. 2
      src/kontactplugin/summary/kcmkontactsummary.cpp
  3. 2
      src/kontactplugin/summary/summaryview_part.cpp
  4. 2
      src/sieveimapinterface/kmsieveimappasswordprovider.cpp
  5. 2
      src/undostack.cpp

@ -93,7 +93,7 @@ static QString selectCharset(KSelectAction *root, const QString &encoding)
} }
} }
} }
return QString(); return {};
} }
void CodecAction::setCharset(const QByteArray &charset) void CodecAction::setCharset(const QByteArray &charset)

@ -54,7 +54,7 @@ public:
} else if (column == 1) { } else if (column == 1) {
return mInfo.comment(); return mInfo.comment();
} else { } else {
return QString(); return {};
} }
} }

@ -539,5 +539,5 @@ QString SummaryViewPart::widgetName(QWidget *widget) const
} }
} }
return QString(); return {};
} }

@ -37,5 +37,5 @@ QString KMSieveImapPasswordProvider::walletPassword(const QString &identifier)
} }
} }
return QString(); return {};
} }

@ -48,7 +48,7 @@ QString UndoStack::undoInfo() const
UndoInfo *info = mStack.first(); UndoInfo *info = mStack.first();
return info->moveToTrash ? i18n("Move To Trash") : i18np("Move Message", "Move Messages", info->items.count()); return info->moveToTrash ? i18n("Move To Trash") : i18np("Move Message", "Move Messages", info->items.count());
} else { } else {
return QString(); return {};
} }
} }

Loading…
Cancel
Save