diff options
author | hjk <hjk@qt.io> | 2019-07-23 10:58:00 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-07-23 11:55:59 +0000 |
commit | 251287f0d35dd82e68dabed8214ef8af893aff91 (patch) | |
tree | a3ba843c1c23f4aea06bc01bf7ab0dd69d6fc741 /src/libs/modelinglib/qmt/model_widgets_ui/propertiesview.cpp | |
parent | 2b26eca80f9ebcdc2f1dc0d890a39a4fbc2d129c (diff) |
Avoid warning on empty expressions
For some reason, Q_UNUSED includes already a semicolon, adding one
on the user side creates an additional empty statement.
Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/libs/modelinglib/qmt/model_widgets_ui/propertiesview.cpp')
-rw-r--r-- | src/libs/modelinglib/qmt/model_widgets_ui/propertiesview.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/libs/modelinglib/qmt/model_widgets_ui/propertiesview.cpp b/src/libs/modelinglib/qmt/model_widgets_ui/propertiesview.cpp index 350803d168..a63a409494 100644 --- a/src/libs/modelinglib/qmt/model_widgets_ui/propertiesview.cpp +++ b/src/libs/modelinglib/qmt/model_widgets_ui/propertiesview.cpp @@ -209,8 +209,8 @@ void PropertiesView::onEndResetModel() void PropertiesView::onBeginUpdateObject(int row, const MObject *parent) { - Q_UNUSED(row); - Q_UNUSED(parent); + Q_UNUSED(row) + Q_UNUSED(parent) } void PropertiesView::onEndUpdateObject(int row, const MObject *parent) @@ -222,14 +222,14 @@ void PropertiesView::onEndUpdateObject(int row, const MObject *parent) void PropertiesView::onBeginInsertObject(int row, const MObject *parent) { - Q_UNUSED(row); - Q_UNUSED(parent); + Q_UNUSED(row) + Q_UNUSED(parent) } void PropertiesView::onEndInsertObject(int row, const MObject *parent) { - Q_UNUSED(row); - Q_UNUSED(parent); + Q_UNUSED(row) + Q_UNUSED(parent) } void PropertiesView::onBeginRemoveObject(int row, const MObject *parent) @@ -241,14 +241,14 @@ void PropertiesView::onBeginRemoveObject(int row, const MObject *parent) void PropertiesView::onEndRemoveObject(int row, const MObject *parent) { - Q_UNUSED(row); - Q_UNUSED(parent); + Q_UNUSED(row) + Q_UNUSED(parent) } void PropertiesView::onBeginMoveObject(int formerRow, const MObject *formerOwner) { - Q_UNUSED(formerRow); - Q_UNUSED(formerOwner); + Q_UNUSED(formerRow) + Q_UNUSED(formerOwner) } void PropertiesView::onEndMoveObject(int row, const MObject *owner) @@ -260,8 +260,8 @@ void PropertiesView::onEndMoveObject(int row, const MObject *owner) void PropertiesView::onBeginUpdateRelation(int row, const MObject *parent) { - Q_UNUSED(row); - Q_UNUSED(parent); + Q_UNUSED(row) + Q_UNUSED(parent) } void PropertiesView::onEndUpdateRelation(int row, const MObject *parent) @@ -273,14 +273,14 @@ void PropertiesView::onEndUpdateRelation(int row, const MObject *parent) void PropertiesView::onBeginInsertRelation(int row, const MObject *parent) { - Q_UNUSED(row); - Q_UNUSED(parent); + Q_UNUSED(row) + Q_UNUSED(parent) } void PropertiesView::onEndInsertRelation(int row, const MObject *parent) { - Q_UNUSED(row); - Q_UNUSED(parent); + Q_UNUSED(row) + Q_UNUSED(parent) } void PropertiesView::onBeginRemoveRelation(int row, const MObject *parent) @@ -292,14 +292,14 @@ void PropertiesView::onBeginRemoveRelation(int row, const MObject *parent) void PropertiesView::onEndRemoveRelation(int row, const MObject *parent) { - Q_UNUSED(row); - Q_UNUSED(parent); + Q_UNUSED(row) + Q_UNUSED(parent) } void PropertiesView::onBeginMoveRelation(int formerRow, const MObject *formerOwner) { - Q_UNUSED(formerRow); - Q_UNUSED(formerOwner); + Q_UNUSED(formerRow) + Q_UNUSED(formerOwner) } void PropertiesView::onEndMoveRelation(int row, const MObject *owner) @@ -311,7 +311,7 @@ void PropertiesView::onEndMoveRelation(int row, const MObject *owner) void PropertiesView::onRelationEndChanged(MRelation *relation, MObject *endObject) { - Q_UNUSED(endObject); + Q_UNUSED(endObject) if (relation && m_selectedModelElements.contains(relation)) m_mview->update(m_selectedModelElements); } @@ -327,7 +327,7 @@ void PropertiesView::onEndResetAllDiagrams() void PropertiesView::onBeginResetDiagram(const MDiagram *diagram) { - Q_UNUSED(diagram); + Q_UNUSED(diagram) } void PropertiesView::onEndResetDiagram(const MDiagram *diagram) @@ -338,8 +338,8 @@ void PropertiesView::onEndResetDiagram(const MDiagram *diagram) void PropertiesView::onBeginUpdateElement(int row, const MDiagram *diagram) { - Q_UNUSED(row); - Q_UNUSED(diagram); + Q_UNUSED(row) + Q_UNUSED(diagram) } void PropertiesView::onEndUpdateElement(int row, const MDiagram *diagram) @@ -353,14 +353,14 @@ void PropertiesView::onEndUpdateElement(int row, const MDiagram *diagram) void PropertiesView::onBeginInsertElement(int row, const MDiagram *diagram) { - Q_UNUSED(row); - Q_UNUSED(diagram); + Q_UNUSED(row) + Q_UNUSED(diagram) } void PropertiesView::onEndInsertElement(int row, const MDiagram *diagram) { - Q_UNUSED(row); - Q_UNUSED(diagram); + Q_UNUSED(row) + Q_UNUSED(diagram) } void PropertiesView::onBeginRemoveElement(int row, const MDiagram *diagram) @@ -374,8 +374,8 @@ void PropertiesView::onBeginRemoveElement(int row, const MDiagram *diagram) void PropertiesView::onEndRemoveElement(int row, const MDiagram *diagram) { - Q_UNUSED(row); - Q_UNUSED(diagram); + Q_UNUSED(row) + Q_UNUSED(diagram) } void PropertiesView::beginUpdate(MElement *modelElement) |