Fix a couple of clang compiler warnings:

-Wunused-variable
-Winconsistent-missing-override
-Wdelete-non-virtual-dtor
-Wunused-private-field
-Wformat
This commit is contained in:
wmayer
2019-06-23 15:19:12 +02:00
parent b9417938c4
commit 85270f5cd3
16 changed files with 64 additions and 23 deletions

View File

@@ -118,8 +118,7 @@ using namespace std;
PROPERTY_SOURCE(TechDraw::DrawViewPart, TechDraw::DrawView)
DrawViewPart::DrawViewPart(void) :
geometryObject(0),
on1(true)
geometryObject(0)
{
static const char *group = "Projection";
static const char *sgroup = "HLR Parameters";

View File

@@ -218,7 +218,6 @@ protected:
private:
bool nowUnsetting;
bool on1;
/* bool m_restoreComplete;*/
};

View File

@@ -49,7 +49,7 @@ QGMText::QGMText() :
QVariant QGMText::itemChange(GraphicsItemChange change, const QVariant &value)
{
QPointF newPos(0.0,0.0);
//QPointF newPos(0.0,0.0);
if(change == ItemPositionHasChanged && scene()) {
Q_EMIT dragging();
}

View File

@@ -52,11 +52,9 @@
using namespace TechDrawGui;
QGTracker::QGTracker(QGraphicsScene* inScene, TrackerMode m):
m_width(0),
m_sleep(false),
m_qgParent(nullptr),
m_lastClick(QPointF(FLT_MAX,FLT_MAX)),
m_2clickPending(false)
m_lastClick(QPointF(FLT_MAX,FLT_MAX))
{
setTrackerMode(m);
if (inScene != nullptr) {

View File

@@ -92,7 +92,6 @@ protected:
double getTrackerWeight();
private:
double m_width;
QGraphicsPathItem* m_track;
QPointF m_segBegin;
QPointF m_segEnd;
@@ -103,7 +102,6 @@ private:
QPen m_trackPen;
QPen m_tailPen;
QPointF m_lastClick;
bool m_2clickPending;
};
} // namespace

View File

@@ -98,7 +98,6 @@ private:
QPointer<MDIViewPage> m_mdiView;
bool m_docReady;
std::string m_pageName;
bool m_frameState;
QGVPage* m_graphicsView;
};