diff options
| author | Serg Podtynnyi <[email protected]> | 2023-02-04 00:14:53 +0700 |
|---|---|---|
| committer | Serg Podtynnyi <[email protected]> | 2023-02-05 12:45:38 +0700 |
| commit | 38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch) | |
| tree | 886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/trash | |
| parent | ffff8af851e3a386c44438337779d0ce7ca98a61 (diff) | |
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/trash')
| -rw-r--r-- | src/trash/dolphintrash.cpp | 7 | ||||
| -rw-r--r-- | src/trash/dolphintrash.h | 14 |
2 files changed, 10 insertions, 11 deletions
diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index 906da2b9d..e1530bfae 100644 --- a/src/trash/dolphintrash.cpp +++ b/src/trash/dolphintrash.cpp @@ -7,11 +7,11 @@ #include "dolphintrash.h" -#include <QList> -#include <KNotification> #include <KConfig> #include <KConfigGroup> #include <KLocalizedString> +#include <KNotification> +#include <QList> #include <kio_version.h> #if KIO_VERSION >= QT_VERSION_CHECK(5, 100, 0) @@ -72,7 +72,7 @@ void Trash::empty(QWidget *window) uiDelegate.setWindow(window); bool confirmed = uiDelegate.askDeleteConfirmation(QList<QUrl>(), KIO::JobUiDelegate::EmptyTrash, KIO::JobUiDelegate::DefaultConfirmation); if (confirmed) { - KIO::Job* job = KIO::emptyTrash(); + KIO::Job *job = KIO::emptyTrash(); KJobWidgets::setWindow(job, window); job->uiDelegate()->setAutoErrorHandlingEnabled(true); QObject::connect(job, &KIO::Job::result, notifyEmptied); @@ -85,4 +85,3 @@ bool Trash::isEmpty() KConfig trashConfig(QStringLiteral("trashrc"), KConfig::SimpleConfig); return (trashConfig.group("Status").readEntry("Empty", true)); } - diff --git a/src/trash/dolphintrash.h b/src/trash/dolphintrash.h index c65cf9232..388bc82ab 100644 --- a/src/trash/dolphintrash.h +++ b/src/trash/dolphintrash.h @@ -10,21 +10,21 @@ #include <QWidget> -#include <KIO/EmptyTrashJob> #include <KDirLister> +#include <KIO/EmptyTrashJob> -class Trash: public QObject +class Trash : public QObject { Q_OBJECT public: // delete copy and move constructors and assign operators - Trash(Trash const&) = delete; - Trash(Trash&&) = delete; - Trash& operator=(Trash const&) = delete; - Trash& operator=(Trash &&) = delete; + Trash(Trash const &) = delete; + Trash(Trash &&) = delete; + Trash &operator=(Trash const &) = delete; + Trash &operator=(Trash &&) = delete; - static Trash& instance(); + static Trash &instance(); static void empty(QWidget *window); static bool isEmpty(); |
