qa: Remove lots of superfluous semicolons
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 22 Aug 2018 19:15:11 +0000 (21:15 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
Since we have now enabled -Wpedantic, the compiler warns us about
superfluous semicolons, of which we apparently have a lot.
Remove them.

12 files changed:
src/common/eventmanager.h
src/common/logger.cpp
src/common/protocol.h
src/common/serializers/serializers.h
src/common/transfer.h
src/qtui/chatviewsettings.h
src/qtui/coreconfigwizard.cpp
src/qtui/coreconfigwizard.h
src/qtui/inputwidget.cpp
src/qtui/titlesetter.cpp
src/qtui/topicwidget.cpp
src/uisupport/treeviewtouch.cpp

index 143363c..d74e236 100644 (file)
@@ -195,6 +195,6 @@ private:
 };
 
 
-Q_DECLARE_OPERATORS_FOR_FLAGS(EventManager::EventFlags);
+Q_DECLARE_OPERATORS_FOR_FLAGS(EventManager::EventFlags)
 
 #endif
index aabba5e..c767fc6 100644 (file)
@@ -38,7 +38,7 @@ namespace {
 QByteArray msgWithTime(const Logger::LogEntry &msg)
 {
     return (msg.timeStamp.toString("yyyy-MM-dd hh:mm:ss ") + msg.message + "\n").toUtf8();
-};
+}
 
 }
 
index 2453a52..1e3114f 100644 (file)
@@ -252,7 +252,7 @@ struct HeartBeatReply
 };
 
 
-};
+}
 
 // Required for InternalPeer
 Q_DECLARE_METATYPE(Protocol::SyncMessage)
index b3c0aa0..61af769 100644 (file)
@@ -114,4 +114,4 @@ namespace Serializers {
     bool deserialize(QDataStream &stream, const Quassel::Features &features, NetworkInfo &data);
     bool deserialize(QDataStream &stream, const Quassel::Features &features, Identity &data);
     bool deserialize(QDataStream &stream, const Quassel::Features &features, Network::Server &data);
-};
+}
index 3612450..57c9cce 100644 (file)
@@ -32,14 +32,14 @@ class Transfer : public SyncableObject
     Q_OBJECT
     SYNCABLE_OBJECT
 
-    Q_PROPERTY(QUuid uuid READ uuid);
-    Q_PROPERTY(Transfer::Status status READ status WRITE setStatus NOTIFY statusChanged);
-    Q_PROPERTY(Transfer::Direction direction READ direction WRITE setDirection NOTIFY directionChanged);
-    Q_PROPERTY(QHostAddress address READ address WRITE setAddress NOTIFY addressChanged);
-    Q_PROPERTY(quint16 port READ port WRITE setPort NOTIFY portChanged);
-    Q_PROPERTY(QString fileName READ fileName WRITE setFileName NOTIFY fileNameChanged);
-    Q_PROPERTY(quint64 fileSize READ fileSize WRITE setFileSize NOTIFY fileSizeChanged);
-    Q_PROPERTY(QString nick READ nick WRITE setNick NOTIFY nickChanged);
+    Q_PROPERTY(QUuid uuid READ uuid)
+    Q_PROPERTY(Transfer::Status status READ status WRITE setStatus NOTIFY statusChanged)
+    Q_PROPERTY(Transfer::Direction direction READ direction WRITE setDirection NOTIFY directionChanged)
+    Q_PROPERTY(QHostAddress address READ address WRITE setAddress NOTIFY addressChanged)
+    Q_PROPERTY(quint16 port READ port WRITE setPort NOTIFY portChanged)
+    Q_PROPERTY(QString fileName READ fileName WRITE setFileName NOTIFY fileNameChanged)
+    Q_PROPERTY(quint64 fileSize READ fileSize WRITE setFileSize NOTIFY fileSizeChanged)
+    Q_PROPERTY(QString nick READ nick WRITE setNick NOTIFY nickChanged)
 
 public:
     enum class Status {
index c491bba..19aed61 100644 (file)
@@ -37,7 +37,7 @@ public:
         OptIn = 1,
         OptOut = 2
     };
-    Q_DECLARE_FLAGS(operationModes, OperationMode);
+    Q_DECLARE_FLAGS(operationModes, OperationMode)
 
     ChatViewSettings(const QString &id = "__default__");
     ChatViewSettings(ChatScene *scene);
index ebb23b8..c51bd85 100644 (file)
@@ -547,4 +547,4 @@ int SyncRelayPage::nextId() const
     emit startOver();
     return 0;
 }
-};  /* namespace CoreConfigWizardPages */
+}  /* namespace CoreConfigWizardPages */
index 2943c15..70512e7 100644 (file)
@@ -39,7 +39,7 @@ namespace CoreConfigWizardPages {
 class SyncPage;
 class SyncRelayPage;
 
-};
+}
 
 class CoreConfigWizard : public QWizard
 {
index 98ef2ba..7a4b5ac 100644 (file)
@@ -374,7 +374,7 @@ const Network *InputWidget::currentNetwork() const
 BufferInfo InputWidget::currentBufferInfo() const
 {
     return selectionModel()->currentIndex().data(NetworkModel::BufferInfoRole).value<BufferInfo>();
-};
+}
 
 
 void InputWidget::applyFormatActiveColor()
index 02fa6ec..731b913 100644 (file)
@@ -44,7 +44,8 @@ void TitleSetter::dataChanged(const QModelIndex &topLeft, const QModelIndex &bot
     QModelIndex currentTopicIndex = selectionModel()->currentIndex().sibling(selectionModel()->currentIndex().row(), 0);
     if (changedArea.contains(currentTopicIndex))
         changeWindowTitle(currentTopicIndex);
-};
+}
+
 
 void TitleSetter::changeWindowTitle(const QModelIndex &index)
 {
index c083193..5426b08 100644 (file)
@@ -67,7 +67,7 @@ void TopicWidget::dataChanged(const QModelIndex &topLeft, const QModelIndex &bot
     QModelIndex currentTopicIndex = selectionModel()->currentIndex().sibling(selectionModel()->currentIndex().row(), 1);
     if (changedArea.contains(currentTopicIndex))
         setTopic(selectionModel()->currentIndex());
-};
+}
 
 void TopicWidget::setUseCustomFont(const QVariant &v)
 {
index 74799b3..4aae13d 100644 (file)
@@ -78,4 +78,4 @@ void TreeViewTouch::mousePressEvent(QMouseEvent *event) {
 void TreeViewTouch::mouseMoveEvent(QMouseEvent *event) {
     if (!_touchScrollInProgress)
         QTreeView::mouseMoveEvent(event);
-};
+}