From 6e4c330410cb8460023a302318a410ba20d2cb00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 22 May 2016 23:53:17 +0100 Subject: [PATCH] Do not run moc on classes where it is not necessary. --- src/core/device.h | 1 - src/core/partitionnode.h | 2 -- src/gui/partwidget.h | 1 - src/gui/partwidgetbase.h | 1 - src/ops/backupoperation.h | 1 - src/ops/checkoperation.h | 1 - src/ops/copyoperation.h | 1 - src/ops/createfilesystemoperation.h | 1 - src/ops/createpartitiontableoperation.h | 1 - src/ops/deleteoperation.h | 1 - src/ops/newoperation.h | 1 - src/ops/resizeoperation.h | 1 - src/ops/restoreoperation.h | 1 - src/ops/setfilesystemlabeloperation.h | 1 - src/ops/setpartflagsoperation.h | 1 - 15 files changed, 16 deletions(-) diff --git a/src/core/device.h b/src/core/device.h index c9e7a74..9b440e3 100644 --- a/src/core/device.h +++ b/src/core/device.h @@ -41,7 +41,6 @@ class SmartStatus; */ class LIBKPMCORE_EXPORT Device : public QObject { - Q_OBJECT Q_DISABLE_COPY(Device) friend class CreatePartitionTableOperation; diff --git a/src/core/partitionnode.h b/src/core/partitionnode.h index bfbd7fd..00d5d25 100644 --- a/src/core/partitionnode.h +++ b/src/core/partitionnode.h @@ -38,8 +38,6 @@ class PartitionRole; */ class LIBKPMCORE_EXPORT PartitionNode : public QObject { - Q_OBJECT - public: typedef QList Partitions; diff --git a/src/gui/partwidget.h b/src/gui/partwidget.h index f0d3b8d..0f2a71c 100644 --- a/src/gui/partwidget.h +++ b/src/gui/partwidget.h @@ -46,7 +46,6 @@ class LIBKPMCORE_EXPORT PartWidget : public PartWidgetBase public: explicit PartWidget(QWidget* parent, const Partition* p = nullptr); -public: void init(const Partition* p); void setActive(bool b) { m_Active = b; diff --git a/src/gui/partwidgetbase.h b/src/gui/partwidgetbase.h index c5e9480..ed42303 100644 --- a/src/gui/partwidgetbase.h +++ b/src/gui/partwidgetbase.h @@ -35,7 +35,6 @@ class QWidget; */ class LIBKPMCORE_EXPORT PartWidgetBase : public QWidget { - Q_OBJECT Q_DISABLE_COPY(PartWidgetBase) protected: diff --git a/src/ops/backupoperation.h b/src/ops/backupoperation.h index 1e6fd4d..cade4e3 100644 --- a/src/ops/backupoperation.h +++ b/src/ops/backupoperation.h @@ -35,7 +35,6 @@ class BackupFileSystemJob; */ class LIBKPMCORE_EXPORT BackupOperation : public Operation { - Q_OBJECT Q_DISABLE_COPY(BackupOperation) public: diff --git a/src/ops/checkoperation.h b/src/ops/checkoperation.h index 4a3117e..4c491c5 100644 --- a/src/ops/checkoperation.h +++ b/src/ops/checkoperation.h @@ -38,7 +38,6 @@ class LIBKPMCORE_EXPORT CheckOperation : public Operation { friend class OperationStack; - Q_OBJECT Q_DISABLE_COPY(CheckOperation) public: diff --git a/src/ops/copyoperation.h b/src/ops/copyoperation.h index db9f842..ab98a6b 100644 --- a/src/ops/copyoperation.h +++ b/src/ops/copyoperation.h @@ -47,7 +47,6 @@ class LIBKPMCORE_EXPORT CopyOperation : public Operation { friend class OperationStack; - Q_OBJECT Q_DISABLE_COPY(CopyOperation) public: diff --git a/src/ops/createfilesystemoperation.h b/src/ops/createfilesystemoperation.h index 4fbbc7d..c162d18 100644 --- a/src/ops/createfilesystemoperation.h +++ b/src/ops/createfilesystemoperation.h @@ -45,7 +45,6 @@ class LIBKPMCORE_EXPORT CreateFileSystemOperation : public Operation { friend class OperationStack; - Q_OBJECT Q_DISABLE_COPY(CreateFileSystemOperation) public: diff --git a/src/ops/createpartitiontableoperation.h b/src/ops/createpartitiontableoperation.h index 56f1a94..c5f422b 100644 --- a/src/ops/createpartitiontableoperation.h +++ b/src/ops/createpartitiontableoperation.h @@ -38,7 +38,6 @@ class OperationStack; */ class LIBKPMCORE_EXPORT CreatePartitionTableOperation : public Operation { - Q_OBJECT Q_DISABLE_COPY(CreatePartitionTableOperation) friend class OperationStack; diff --git a/src/ops/deleteoperation.h b/src/ops/deleteoperation.h index e36129d..611e682 100644 --- a/src/ops/deleteoperation.h +++ b/src/ops/deleteoperation.h @@ -40,7 +40,6 @@ class LIBKPMCORE_EXPORT DeleteOperation : public Operation { friend class OperationStack; - Q_OBJECT Q_DISABLE_COPY(DeleteOperation) public: diff --git a/src/ops/newoperation.h b/src/ops/newoperation.h index 6db1207..16c8e3a 100644 --- a/src/ops/newoperation.h +++ b/src/ops/newoperation.h @@ -45,7 +45,6 @@ class LIBKPMCORE_EXPORT NewOperation : public Operation { friend class OperationStack; - Q_OBJECT Q_DISABLE_COPY(NewOperation) public: diff --git a/src/ops/resizeoperation.h b/src/ops/resizeoperation.h index 77e29e8..8e1976f 100644 --- a/src/ops/resizeoperation.h +++ b/src/ops/resizeoperation.h @@ -52,7 +52,6 @@ class LIBKPMCORE_EXPORT ResizeOperation : public Operation { friend class OperationStack; - Q_OBJECT Q_DISABLE_COPY(ResizeOperation) protected: diff --git a/src/ops/restoreoperation.h b/src/ops/restoreoperation.h index ef45b22..56596a7 100644 --- a/src/ops/restoreoperation.h +++ b/src/ops/restoreoperation.h @@ -48,7 +48,6 @@ class LIBKPMCORE_EXPORT RestoreOperation : public Operation { friend class OperationStack; - Q_OBJECT Q_DISABLE_COPY(RestoreOperation) public: diff --git a/src/ops/setfilesystemlabeloperation.h b/src/ops/setfilesystemlabeloperation.h index f03a032..54378d0 100644 --- a/src/ops/setfilesystemlabeloperation.h +++ b/src/ops/setfilesystemlabeloperation.h @@ -41,7 +41,6 @@ class LIBKPMCORE_EXPORT SetFileSystemLabelOperation : public Operation { friend class OperationStack; - Q_OBJECT Q_DISABLE_COPY(SetFileSystemLabelOperation) public: diff --git a/src/ops/setpartflagsoperation.h b/src/ops/setpartflagsoperation.h index db0387a..e4212e2 100644 --- a/src/ops/setpartflagsoperation.h +++ b/src/ops/setpartflagsoperation.h @@ -44,7 +44,6 @@ class LIBKPMCORE_EXPORT SetPartFlagsOperation : public Operation { friend class OperationStack; - Q_OBJECT Q_DISABLE_COPY(SetPartFlagsOperation) public: