aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/modelinglib/qmt/diagram_scene/items/objectitem.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-07-23 10:58:00 +0200
committerhjk <hjk@qt.io>2019-07-23 11:55:59 +0000
commit251287f0d35dd82e68dabed8214ef8af893aff91 (patch)
treea3ba843c1c23f4aea06bc01bf7ab0dd69d6fc741 /src/libs/modelinglib/qmt/diagram_scene/items/objectitem.cpp
parent2b26eca80f9ebcdc2f1dc0d890a39a4fbc2d129c (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/diagram_scene/items/objectitem.cpp')
-rw-r--r--src/libs/modelinglib/qmt/diagram_scene/items/objectitem.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libs/modelinglib/qmt/diagram_scene/items/objectitem.cpp b/src/libs/modelinglib/qmt/diagram_scene/items/objectitem.cpp
index f00ed98b96..b68ed9a4f7 100644
--- a/src/libs/modelinglib/qmt/diagram_scene/items/objectitem.cpp
+++ b/src/libs/modelinglib/qmt/diagram_scene/items/objectitem.cpp
@@ -83,9 +83,9 @@ QRectF ObjectItem::boundingRect() const
void ObjectItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
- Q_UNUSED(painter);
- Q_UNUSED(option);
- Q_UNUSED(widget);
+ Q_UNUSED(painter)
+ Q_UNUSED(option)
+ Q_UNUSED(widget)
}
QPointF ObjectItem::pos() const
@@ -273,7 +273,7 @@ ILatchable::Action ObjectItem::verticalLatchAction() const
QList<ILatchable::Latch> ObjectItem::horizontalLatches(ILatchable::Action action, bool grabbedItem) const
{
- Q_UNUSED(grabbedItem);
+ Q_UNUSED(grabbedItem)
QRectF rect = mapRectToScene(this->rect());
QList<ILatchable::Latch> result;
@@ -301,7 +301,7 @@ QList<ILatchable::Latch> ObjectItem::horizontalLatches(ILatchable::Action action
QList<ILatchable::Latch> ObjectItem::verticalLatches(ILatchable::Action action, bool grabbedItem) const
{
- Q_UNUSED(grabbedItem);
+ Q_UNUSED(grabbedItem)
QRectF rect = mapRectToScene(this->rect());
QList<ILatchable::Latch> result;
@@ -394,7 +394,7 @@ void ObjectItem::relationDrawn(const QString &id, ObjectItem *targetItem, const
void ObjectItem::align(IAlignable::AlignType alignType, const QString &identifier)
{
- Q_UNUSED(identifier); // avoid warning in release mode
+ Q_UNUSED(identifier) // avoid warning in release mode
// subclasses may support other identifiers than the standard ones.
// but this implementation does not. So assert the names.
@@ -541,7 +541,7 @@ void ObjectItem::updateStereotypes(const QString &stereotypeIconId, StereotypeIc
QSizeF ObjectItem::stereotypeIconMinimumSize(const StereotypeIcon &stereotypeIcon,
qreal minimumWidth, qreal minimumHeight) const
{
- Q_UNUSED(minimumWidth);
+ Q_UNUSED(minimumWidth)
qreal width = 0.0;
qreal height = 0.0;
@@ -946,14 +946,14 @@ bool ObjectItem::showContext() const
bool ObjectItem::extendContextMenu(QMenu *menu)
{
- Q_UNUSED(menu);
+ Q_UNUSED(menu)
return false;
}
bool ObjectItem::handleSelectedContextMenuAction(const QString &id)
{
- Q_UNUSED(id);
+ Q_UNUSED(id)
return false;
}