From 38c34eeca315c7be58e65d4d3fb72aaf7b866719 Mon Sep 17 00:00:00 2001 From: Serg Podtynnyi Date: Sat, 4 Feb 2023 00:14:53 +0700 Subject: Add clang-format and format code as in Frameworks --- src/trash/dolphintrash.cpp | 7 +++---- src/trash/dolphintrash.h | 14 +++++++------- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'src/trash') 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 -#include #include #include #include +#include +#include #include #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(), 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 -#include #include +#include -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(); -- cgit v1.3