Commit 5cebb2db authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QStringLiteral/explicit

parent 31421a6e
......@@ -46,7 +46,7 @@
class PlasmoidModel: public QStandardItemModel
{
public:
PlasmoidModel(QObject *parent = 0)
explicit PlasmoidModel(QObject *parent = nullptr)
: QStandardItemModel(parent)
{
}
......@@ -221,18 +221,18 @@ void SystemTray::showPlasmoidMenu(QQuickItem *appletInterface, int x, int y)
QString SystemTray::plasmoidCategory(QQuickItem *appletInterface) const
{
if (!appletInterface) {
return "UnknownCategory";
return QStringLiteral("UnknownCategory");
}
Plasma::Applet *applet = appletInterface->property("_plasma_applet").value<Plasma::Applet*>();
if (!applet || !applet->pluginMetaData().isValid()) {
return "UnknownCategory";
return QStringLiteral("UnknownCategory");
}
const QString cat = applet->pluginMetaData().value(QStringLiteral("X-Plasma-NotificationAreaCategory"));
if (cat.isEmpty()) {
return "UnknownCategory";
return QStringLiteral("UnknownCategory");
}
return cat;
}
......
......@@ -343,7 +343,7 @@ void InteractiveConsole::openScriptUrlSelected(int result)
}
m_fileDialog->deleteLater();
m_fileDialog = 0;
m_fileDialog = nullptr;
}
void InteractiveConsole::loadScriptFromUrl(const QUrl &url)
......
Supports Markdown
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