Commit 70510362 authored by Laurent Montel's avatar Laurent Montel 😁

nullptr

parent 0f73f019
......@@ -76,11 +76,11 @@ QAction *KWalletEditor::_alwaysHideContentsAction = nullptr;
RegisterCreateActionsMethod KWalletEditor::_registerCreateActionMethod(&KWalletEditor::createActions);
KWalletEditor::KWalletEditor(QWidget *parent, const char *name)
KWalletEditor::KWalletEditor(QWidget *parent, const QString &name)
: QWidget(parent), _displayedItem(0), _actionCollection(nullptr), _alwaysShowContents(false)
{
setupUi(this);
setObjectName(QLatin1String(name));
setObjectName(name);
_newWallet = false;
_splitter->setStretchFactor(0, 1);
_splitter->setStretchFactor(1, 2);
......
......@@ -41,7 +41,7 @@ class KWalletEditor : public QWidget, public Ui::WalletWidget
Q_OBJECT
public:
KWalletEditor(QWidget *parent, const char *name = 0);
explicit KWalletEditor(QWidget *parent, const QString &name = QString());
virtual ~KWalletEditor();
void setWallet(KWallet::Wallet *wallet, bool isPath = false);
......
......@@ -92,12 +92,14 @@ void WalletControlWidget::onSetupWidget()
if (_walletEditor) {
_walletEditor->setVisible(false);
delete _walletEditor, _walletEditor = nullptr;
delete _walletEditor;
_walletEditor = nullptr;
}
if (_applicationsManager) {
_applicationsManager->setVisible(false);
delete _applicationsManager, _applicationsManager = nullptr;
delete _applicationsManager;
_applicationsManager = nullptr;
}
_changePassword->setEnabled(false);
_stateLabel->setText(i18n("The wallet is currently closed"));
......
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