diff options
| author | Montel Laurent <[email protected]> | 2015-09-01 22:02:29 +0200 |
|---|---|---|
| committer | Montel Laurent <[email protected]> | 2015-09-01 22:02:47 +0200 |
| commit | bfa4274f58fcf5c873f20210ce6a88277671ccee (patch) | |
| tree | 6aa5e205f4636da9b5229c264a7a1b5924c7d405 | |
| parent | 6eae544e2943af4e1dea874b07dd3218b3d8bb1d (diff) | |
Pedantic--
| -rw-r--r-- | src/tests/kitemlistcontrollertest.cpp | 10 | ||||
| -rw-r--r-- | src/tests/kitemlistselectionmanagertest.cpp | 12 | ||||
| -rw-r--r-- | src/tests/kitemrangetest.cpp | 4 | ||||
| -rw-r--r-- | src/views/dolphinview.cpp | 2 | ||||
| -rw-r--r-- | src/views/versioncontrol/kversioncontrolplugin.h | 4 |
5 files changed, 16 insertions, 16 deletions
diff --git a/src/tests/kitemlistcontrollertest.cpp b/src/tests/kitemlistcontrollertest.cpp index e34731fa4..e170e7b5b 100644 --- a/src/tests/kitemlistcontrollertest.cpp +++ b/src/tests/kitemlistcontrollertest.cpp @@ -71,10 +71,10 @@ private: bool m_activateItemOnSingleClick; }; -Q_DECLARE_METATYPE(KFileItemListView::ItemLayout); -Q_DECLARE_METATYPE(Qt::Orientation); -Q_DECLARE_METATYPE(KItemListController::SelectionBehavior); -Q_DECLARE_METATYPE(KItemSet); +Q_DECLARE_METATYPE(KFileItemListView::ItemLayout) +Q_DECLARE_METATYPE(Qt::Orientation) +Q_DECLARE_METATYPE(KItemListController::SelectionBehavior) +Q_DECLARE_METATYPE(KItemSet) class KItemListControllerTest : public QObject { @@ -209,7 +209,7 @@ struct ViewState { // We have to define a typedef for the pair in order to make the test compile. typedef QPair<KeyPress, ViewState> keyPressViewStatePair; -Q_DECLARE_METATYPE(QList<keyPressViewStatePair>); +Q_DECLARE_METATYPE(QList<keyPressViewStatePair>) /** * This function provides the data for the actual test function diff --git a/src/tests/kitemlistselectionmanagertest.cpp b/src/tests/kitemlistselectionmanagertest.cpp index 7cf60df42..b183de302 100644 --- a/src/tests/kitemlistselectionmanagertest.cpp +++ b/src/tests/kitemlistselectionmanagertest.cpp @@ -322,12 +322,12 @@ namespace { }; } -Q_DECLARE_METATYPE(KItemSet); -Q_DECLARE_METATYPE(ChangeType); -Q_DECLARE_METATYPE(KItemRange); -Q_DECLARE_METATYPE(KItemRangeList); -Q_DECLARE_METATYPE(KItemListSelectionManager::SelectionMode); -Q_DECLARE_METATYPE(QList<int>); +Q_DECLARE_METATYPE(KItemSet) +Q_DECLARE_METATYPE(ChangeType) +Q_DECLARE_METATYPE(KItemRange) +Q_DECLARE_METATYPE(KItemRangeList) +Q_DECLARE_METATYPE(KItemListSelectionManager::SelectionMode) +Q_DECLARE_METATYPE(QList<int>) /** * The following function provides a generic way to test the selection functionality. diff --git a/src/tests/kitemrangetest.cpp b/src/tests/kitemrangetest.cpp index ce7b48012..5e4ea653f 100644 --- a/src/tests/kitemrangetest.cpp +++ b/src/tests/kitemrangetest.cpp @@ -22,8 +22,8 @@ #include <QTest> #include <QVector> -Q_DECLARE_METATYPE(QVector<int>); -Q_DECLARE_METATYPE(KItemRangeList); +Q_DECLARE_METATYPE(QVector<int>) +Q_DECLARE_METATYPE(KItemRangeList) class KItemRangeTest : public QObject { diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index d3023585a..ba6d7188d 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -77,7 +77,7 @@ namespace { const int MaxModeEnum = DolphinView::CompactView; -}; +} DolphinView::DolphinView(const QUrl& url, QWidget* parent) : QWidget(parent), diff --git a/src/views/versioncontrol/kversioncontrolplugin.h b/src/views/versioncontrol/kversioncontrolplugin.h index e5a267848..85835e062 100644 --- a/src/views/versioncontrol/kversioncontrolplugin.h +++ b/src/views/versioncontrol/kversioncontrolplugin.h @@ -23,9 +23,9 @@ #include <dolphin_export.h> #include <QObject> -#include <KFileItem> #include <QAction> - +class KFileItemList; +class KFileItem; /** * @brief Base class for version control plugins. * |
