Commit 193cf809 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use std::unique_ptr directly

parent 3a41f765
Pipeline #83285 passed with stage
in 25 minutes and 36 seconds
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#pragma once #pragma once
#include <QGroupBox> #include <QGroupBox>
#include <memory>
class KJob; class KJob;
namespace Ui namespace Ui
...@@ -47,6 +47,6 @@ private: ...@@ -47,6 +47,6 @@ private:
void selectFromAddressBookDone(KJob *); void selectFromAddressBookDone(KJob *);
private: private:
QScopedPointer<Ui::EncodedImagePicker> mUi; std::unique_ptr<Ui::EncodedImagePicker> mUi;
}; };
} // namespace KMail } // namespace KMail
/* -*- c++ -*- /*
xfaceconfigurator.cpp xfaceconfigurator.cpp
KMail, the KDE mail client. KMail, the KDE mail client.
...@@ -64,7 +64,7 @@ private Q_SLOTS: ...@@ -64,7 +64,7 @@ private Q_SLOTS:
void pngquantFinished(int, QProcess::ExitStatus); void pngquantFinished(int, QProcess::ExitStatus);
private: private:
QScopedPointer<Ui::XFaceConfigurator> mUi; std::unique_ptr<Ui::XFaceConfigurator> mUi;
QProcess *const mPngquantProc; QProcess *const mPngquantProc;
}; };
} // namespace KMail } // namespace KMail
......
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