summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-01 20:47:50 +0200
committerMontel Laurent <[email protected]>2017-09-01 20:47:50 +0200
commit4ab4be8ca3a64bbcbd18d5d3a4863f213a9e0c93 (patch)
treef0b2a41ab629688e03fd236088719835fbb7b3bb
parent92c56713cd68e9162b249e56e13a12d639892797 (diff)
Use QString directly here
-rw-r--r--src/manager/kwalletpopup.cpp4
-rw-r--r--src/manager/kwalletpopup.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/manager/kwalletpopup.cpp b/src/manager/kwalletpopup.cpp
index 46f9d02..0fe018e 100644
--- a/src/manager/kwalletpopup.cpp
+++ b/src/manager/kwalletpopup.cpp
@@ -27,11 +27,11 @@
#include <kwallet.h>
-KWalletPopup::KWalletPopup(const QString &wallet, QWidget *parent, const char *name)
+KWalletPopup::KWalletPopup(const QString &wallet, QWidget *parent, const QString &name)
: QMenu(parent), _walletName(wallet)
{
addSection(wallet);
- setObjectName(QLatin1String(name));
+ setObjectName(name);
KActionCollection *ac = new KActionCollection(this/*, "kwallet context actions"*/);
ac->setObjectName(QStringLiteral("kwallet context actions"));
QAction *act;
diff --git a/src/manager/kwalletpopup.h b/src/manager/kwalletpopup.h
index 5b44b9b..acc95e6 100644
--- a/src/manager/kwalletpopup.h
+++ b/src/manager/kwalletpopup.h
@@ -28,7 +28,7 @@ class KWalletPopup : public QMenu
Q_OBJECT
public:
- explicit KWalletPopup(const QString &wallet, QWidget *parent = 0, const char *name = 0);
+ explicit KWalletPopup(const QString &wallet, QWidget *parent = nullptr, const QString &name = QString());
virtual ~KWalletPopup();
public slots: