]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Pedantic--
authorMontel Laurent <montel@kde.org>
Tue, 1 Sep 2015 20:02:29 +0000 (22:02 +0200)
committerMontel Laurent <montel@kde.org>
Tue, 1 Sep 2015 20:02:47 +0000 (22:02 +0200)
src/tests/kitemlistcontrollertest.cpp
src/tests/kitemlistselectionmanagertest.cpp
src/tests/kitemrangetest.cpp
src/views/dolphinview.cpp
src/views/versioncontrol/kversioncontrolplugin.h

index e34731fa4b59c1f058bc8ec6bd3255fc4b142f07..e170e7b5b2b58b89a15bcdebbbe2b554158ba7c3 100644 (file)
@@ -71,10 +71,10 @@ private:
     bool m_activateItemOnSingleClick;
 };
 
     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
 {
 
 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;
 
 // 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
 
 /**
  * This function provides the data for the actual test function
index 7cf60df4228d3b23013c948678fdd0076957ce78..b183de3026924578cecd11fa9e45f596edaf6e34 100644 (file)
@@ -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.
 
 /**
  * The following function provides a generic way to test the selection functionality.
index ce7b48012a98528a0ed429f387a7aeeb28a87012..5e4ea653f43aa74d2f4bca3f948935589921b3e2 100644 (file)
@@ -22,8 +22,8 @@
 #include <QTest>
 #include <QVector>
 
 #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
 {
 
 class KItemRangeTest : public QObject
 {
index d3023585aefa05a5a292fcbc6c0a9e9ef69e4e39..ba6d7188de6c27bed57e52f9576b7b896daf152b 100644 (file)
@@ -77,7 +77,7 @@
 
 namespace {
     const int MaxModeEnum = DolphinView::CompactView;
 
 namespace {
     const int MaxModeEnum = DolphinView::CompactView;
-};
+}
 
 DolphinView::DolphinView(const QUrl& url, QWidget* parent) :
     QWidget(parent),
 
 DolphinView::DolphinView(const QUrl& url, QWidget* parent) :
     QWidget(parent),
index e5a26784829b56eb46266b92603067a5c62670c3..85835e06232d602438d3ae8953c6f581dd70c2bc 100644 (file)
@@ -23,9 +23,9 @@
 #include <dolphin_export.h>
 
 #include <QObject>
 #include <dolphin_export.h>
 
 #include <QObject>
-#include <KFileItem>
 #include <QAction>
 #include <QAction>
-
+class KFileItemList;
+class KFileItem;
 /**
  * @brief Base class for version control plugins.
  *
 /**
  * @brief Base class for version control plugins.
  *