From eaa1744262a7adc41deb966dfbc8244aed7db5f1 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 25 May 2016 16:28:35 +0300 Subject: [PATCH] Clang warnings. --HG-- branch : develop --- src/libs/vtools/dialogs/tools/dialogrotation.cpp | 1 + src/libs/vtools/tools/drawTools/vdrawtool.cpp | 1 - src/libs/vtools/tools/nodeDetails/vabstractnode.h | 5 ++--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libs/vtools/dialogs/tools/dialogrotation.cpp b/src/libs/vtools/dialogs/tools/dialogrotation.cpp index 1539fcadb..8af42964d 100644 --- a/src/libs/vtools/dialogs/tools/dialogrotation.cpp +++ b/src/libs/vtools/dialogs/tools/dialogrotation.cpp @@ -231,6 +231,7 @@ void DialogRotation::ChosenObject(quint32 id, const SceneObject &type) //--------------------------------------------------------------------------------------------------------------------- void DialogRotation::SelectedObject(bool selected, quint32 object, quint32 tool) { + Q_UNUSED(tool) if (stage1) { if (selected) diff --git a/src/libs/vtools/tools/drawTools/vdrawtool.cpp b/src/libs/vtools/tools/drawTools/vdrawtool.cpp index 348ece144..81bbfb172 100644 --- a/src/libs/vtools/tools/drawTools/vdrawtool.cpp +++ b/src/libs/vtools/tools/drawTools/vdrawtool.cpp @@ -291,7 +291,6 @@ qreal VDrawTool::CheckFormula(const quint32 &toolId, QString &formula, VContaine { SCASSERT(data != nullptr) qreal result = 0; - Calculator *cal = nullptr; try { QScopedPointer cal(new Calculator()); diff --git a/src/libs/vtools/tools/nodeDetails/vabstractnode.h b/src/libs/vtools/tools/nodeDetails/vabstractnode.h index b12e1aa29..4272514da 100644 --- a/src/libs/vtools/tools/nodeDetails/vabstractnode.h +++ b/src/libs/vtools/tools/nodeDetails/vabstractnode.h @@ -47,9 +47,8 @@ public: virtual ~VAbstractNode() Q_DECL_OVERRIDE {} static const QString AttrIdTool; virtual void ShowVisualization(bool show) Q_DECL_OVERRIDE; - - void incrementReferens(); - void decrementReferens(); + virtual void incrementReferens() Q_DECL_OVERRIDE; + virtual void decrementReferens() Q_DECL_OVERRIDE; ParentType GetParentType() const; void SetParentType(const ParentType &value);