Commit 84e10812 authored by Laurent Montel's avatar Laurent Montel 😁

Consti'fy

parent e1e90ac7
......@@ -35,7 +35,7 @@ class KWalletManager : public KXmlGuiWindow
Q_CLASSINFO("D-Bus Interface", "org.kde.kwallet.kwalletmanager")
public:
explicit KWalletManager(QWidget *parent = nullptr, const QString &name = QString(), Qt::WindowFlags f = 0);
explicit KWalletManager(QWidget *parent = nullptr, const QString &name = QString(), Qt::WindowFlags f = {});
~KWalletManager() override;
void kwalletdLaunch();
......
......@@ -49,7 +49,7 @@ void KWalletManagerWidget::onCurrentPageChanged(KPageWidgetItem *current, KPageW
}
void KWalletManagerWidget::updateWalletDisplay(QString selectWallet /* = QString() */)
void KWalletManagerWidget::updateWalletDisplay(const QString &selectWallet /* = QString() */)
{
// NOTE: this method is called upon several kwalletd events
static bool alreadyUpdating = false;
......
......@@ -32,10 +32,10 @@ class KWalletManagerWidget : public KPageWidget
{
Q_OBJECT
public:
explicit KWalletManagerWidget(QWidget *parent = nullptr, Qt::WindowFlags flags = 0);
explicit KWalletManagerWidget(QWidget *parent = nullptr, Qt::WindowFlags flags = {});
~KWalletManagerWidget() override;
void updateWalletDisplay(QString selectWallet = QString());
void updateWalletDisplay(const QString &selectWallet = QString());
bool hasWallet(const QString &) const;
bool openWalletFile(const QString &path);
bool openWallet(const QString &name);
......
......@@ -37,7 +37,7 @@ private Q_SLOTS:
void onClicked();
Q_SIGNALS:
void appRevoked(QString);
void appRevoked(const QString&);
private:
QString _appName;
......
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