diff options
author | Jochen Becher <[email protected]> | 2018-08-09 22:03:32 +0200 |
---|---|---|
committer | Jochen Becher <[email protected]> | 2018-09-05 18:05:16 +0000 |
commit | 2c2faf8749f21817f906af4457c6c40e50633478 (patch) | |
tree | 6bd12c962600d63dde635086942b87d3610882b3 /src/libs/modelinglib | |
parent | 17d6efd5a0ae0938ff9cdef0be3519a39277ade7 (diff) |
ModelEditor: remove redundant static keyword
Change-Id: I527341c7d85c159ba4869576bb8b2df3de2344cd
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/libs/modelinglib')
-rw-r--r-- | src/libs/modelinglib/qmt/infrastructure/geometryutilities.cpp | 2 | ||||
-rw-r--r-- | src/libs/modelinglib/qmt/tasks/diagramscenecontroller.cpp | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/libs/modelinglib/qmt/infrastructure/geometryutilities.cpp b/src/libs/modelinglib/qmt/infrastructure/geometryutilities.cpp index 90c9d38499d..9968fbf0b89 100644 --- a/src/libs/modelinglib/qmt/infrastructure/geometryutilities.cpp +++ b/src/libs/modelinglib/qmt/infrastructure/geometryutilities.cpp @@ -195,7 +195,7 @@ double GeometryUtilities::calcAngle(const QLineF &line) namespace { // scalar product -static qreal operator&(const QVector2D &lhs, const QVector2D &rhs) { +qreal operator&(const QVector2D &lhs, const QVector2D &rhs) { return lhs.x() * rhs.x() + lhs.y() * rhs.y(); } diff --git a/src/libs/modelinglib/qmt/tasks/diagramscenecontroller.cpp b/src/libs/modelinglib/qmt/tasks/diagramscenecontroller.cpp index 8147303adea..6cdc2994720 100644 --- a/src/libs/modelinglib/qmt/tasks/diagramscenecontroller.cpp +++ b/src/libs/modelinglib/qmt/tasks/diagramscenecontroller.cpp @@ -72,7 +72,7 @@ namespace qmt { namespace { -static VoidElementTasks dummyElementTasks; +VoidElementTasks dummyElementTasks; } class DiagramSceneController::AcceptRelationVisitor : public MVoidConstVisitor @@ -516,7 +516,7 @@ MDiagram *DiagramSceneController::findDiagramBySearchId(MPackage *package, const namespace { -static QPointF alignObjectLeft(DObject *object, DObject *otherObject) +QPointF alignObjectLeft(DObject *object, DObject *otherObject) { qreal left = object->pos().x() + object->rect().left(); QPointF pos = otherObject->pos(); @@ -526,7 +526,7 @@ static QPointF alignObjectLeft(DObject *object, DObject *otherObject) return pos; } -static QPointF alignObjectRight(DObject *object, DObject *otherObject) +QPointF alignObjectRight(DObject *object, DObject *otherObject) { qreal right = object->pos().x() + object->rect().right(); QPointF pos = otherObject->pos(); @@ -536,7 +536,7 @@ static QPointF alignObjectRight(DObject *object, DObject *otherObject) return pos; } -static QPointF alignObjectHCenter(DObject *object, DObject *otherObject) +QPointF alignObjectHCenter(DObject *object, DObject *otherObject) { qreal center = object->pos().x(); QPointF pos = otherObject->pos(); @@ -546,7 +546,7 @@ static QPointF alignObjectHCenter(DObject *object, DObject *otherObject) return pos; } -static QPointF alignObjectTop(DObject *object, DObject *otherObject) +QPointF alignObjectTop(DObject *object, DObject *otherObject) { qreal top = object->pos().y() + object->rect().top(); QPointF pos = otherObject->pos(); @@ -556,7 +556,7 @@ static QPointF alignObjectTop(DObject *object, DObject *otherObject) return pos; } -static QPointF alignObjectBottom(DObject *object, DObject *otherObject) +QPointF alignObjectBottom(DObject *object, DObject *otherObject) { qreal bottom = object->pos().y() + object->rect().bottom(); QPointF pos = otherObject->pos(); @@ -566,7 +566,7 @@ static QPointF alignObjectBottom(DObject *object, DObject *otherObject) return pos; } -static QPointF alignObjectVCenter(DObject *object, DObject *otherObject) +QPointF alignObjectVCenter(DObject *object, DObject *otherObject) { qreal center = object->pos().y(); QPointF pos = otherObject->pos(); @@ -576,7 +576,7 @@ static QPointF alignObjectVCenter(DObject *object, DObject *otherObject) return pos; } -static QRectF alignObjectWidth(DObject *object, const QSizeF &size) +QRectF alignObjectWidth(DObject *object, const QSizeF &size) { QRectF rect = object->rect(); rect.setX(-size.width() / 2.0); @@ -584,7 +584,7 @@ static QRectF alignObjectWidth(DObject *object, const QSizeF &size) return rect; } -static QRectF alignObjectHeight(DObject *object, const QSizeF &size) +QRectF alignObjectHeight(DObject *object, const QSizeF &size) { QRectF rect = object->rect(); rect.setY(-size.height() / 2.0); @@ -592,7 +592,7 @@ static QRectF alignObjectHeight(DObject *object, const QSizeF &size) return rect; } -static QRectF alignObjectSize(DObject *object, const QSizeF &size) +QRectF alignObjectSize(DObject *object, const QSizeF &size) { Q_UNUSED(object); |