Clang warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-05-25 16:28:35 +03:00
parent 73ad3a8376
commit eaa1744262
3 changed files with 3 additions and 4 deletions

View File

@ -231,6 +231,7 @@ void DialogRotation::ChosenObject(quint32 id, const SceneObject &type)
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void DialogRotation::SelectedObject(bool selected, quint32 object, quint32 tool) void DialogRotation::SelectedObject(bool selected, quint32 object, quint32 tool)
{ {
Q_UNUSED(tool)
if (stage1) if (stage1)
{ {
if (selected) if (selected)

View File

@ -291,7 +291,6 @@ qreal VDrawTool::CheckFormula(const quint32 &toolId, QString &formula, VContaine
{ {
SCASSERT(data != nullptr) SCASSERT(data != nullptr)
qreal result = 0; qreal result = 0;
Calculator *cal = nullptr;
try try
{ {
QScopedPointer<Calculator> cal(new Calculator()); QScopedPointer<Calculator> cal(new Calculator());

View File

@ -47,9 +47,8 @@ public:
virtual ~VAbstractNode() Q_DECL_OVERRIDE {} virtual ~VAbstractNode() Q_DECL_OVERRIDE {}
static const QString AttrIdTool; static const QString AttrIdTool;
virtual void ShowVisualization(bool show) Q_DECL_OVERRIDE; virtual void ShowVisualization(bool show) Q_DECL_OVERRIDE;
virtual void incrementReferens() Q_DECL_OVERRIDE;
void incrementReferens(); virtual void decrementReferens() Q_DECL_OVERRIDE;
void decrementReferens();
ParentType GetParentType() const; ParentType GetParentType() const;
void SetParentType(const ParentType &value); void SetParentType(const ParentType &value);