GCC warnings.
This commit is contained in:
parent
aff0ee546b
commit
51ed05e1fa
|
@ -36,6 +36,9 @@
|
|||
|
||||
#include "../ifcdef.h"
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||
|
||||
/**
|
||||
* @brief The VException class parent for all exception. Could be use for abstract exception
|
||||
*/
|
||||
|
@ -69,6 +72,8 @@ protected:
|
|||
QString MoreInfo(const QString &detInfo) const;
|
||||
};
|
||||
|
||||
QT_WARNING_POP
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
* @brief What return string with error
|
||||
|
|
|
@ -87,6 +87,9 @@ struct VGroupData
|
|||
|
||||
QT_WARNING_POP
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||
|
||||
class VAbstractPattern : public VDomDocument
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -471,6 +474,8 @@ private:
|
|||
void SetFMeasurements(QDomElement &element, const QVector<VFinalMeasurement> &measurements);
|
||||
};
|
||||
|
||||
QT_WARNING_POP
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
* @brief GetNameActivPP return current pattern piece name.
|
||||
|
|
|
@ -302,7 +302,7 @@ public:
|
|||
* @author Rallaz
|
||||
*/
|
||||
/*TODO: handle complex lineType*/
|
||||
class DRW_LType : public DRW_TableEntry {
|
||||
class DRW_LType final : public DRW_TableEntry {
|
||||
SETOBJFRIENDS
|
||||
public:
|
||||
DRW_LType()
|
||||
|
|
|
@ -41,6 +41,9 @@
|
|||
class VAbstractArcData;
|
||||
class VPointF;
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||
|
||||
class VAbstractArc : public VAbstractCurve
|
||||
{
|
||||
public:
|
||||
|
@ -89,4 +92,6 @@ private:
|
|||
QSharedDataPointer<VAbstractArcData> d;
|
||||
};
|
||||
|
||||
QT_WARNING_POP
|
||||
|
||||
#endif // VABSTRACTARC_H
|
||||
|
|
|
@ -39,7 +39,7 @@ QT_WARNING_PUSH
|
|||
QT_WARNING_DISABLE_GCC("-Weffc++")
|
||||
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
|
||||
|
||||
class VAbstractArcData : public QSharedData
|
||||
class VAbstractArcData final : public QSharedData
|
||||
{
|
||||
public:
|
||||
VAbstractArcData();
|
||||
|
|
|
@ -43,6 +43,9 @@ class VPointF;
|
|||
class VSpline;
|
||||
class VSplinePoint;
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||
|
||||
class VAbstractCubicBezierPath : public VAbstractBezier
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(VAbstractCubicBezierPath)
|
||||
|
@ -80,4 +83,6 @@ protected:
|
|||
virtual VPointF LastPoint() const =0;
|
||||
};
|
||||
|
||||
QT_WARNING_POP
|
||||
|
||||
#endif // VABSTRACTCUBICBEZIERPATH_H
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
class VCubicBezierPathData;
|
||||
|
||||
class VCubicBezierPath : public VAbstractCubicBezierPath
|
||||
class VCubicBezierPath final : public VAbstractCubicBezierPath
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(VCubicBezierPath)
|
||||
public:
|
||||
|
|
|
@ -37,7 +37,7 @@ QT_WARNING_PUSH
|
|||
QT_WARNING_DISABLE_GCC("-Weffc++")
|
||||
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
|
||||
|
||||
class VPlaceLabelItemData : public QSharedData
|
||||
class VPlaceLabelItemData final : public QSharedData
|
||||
{
|
||||
public:
|
||||
VPlaceLabelItemData()
|
||||
|
|
|
@ -39,6 +39,7 @@ unix {
|
|||
*clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
|
|
|
@ -37,6 +37,9 @@
|
|||
|
||||
struct VFinalMeasurement;
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||
|
||||
class VAbstractMainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -79,4 +82,6 @@ private:
|
|||
Q_DISABLE_COPY(VAbstractMainWindow)
|
||||
};
|
||||
|
||||
QT_WARNING_POP
|
||||
|
||||
#endif // VABSTRACTMAINWINDOW_H
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
|
||||
#include "../vmisc/def.h"
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||
|
||||
class VCurvePathItem : public QGraphicsPathItem
|
||||
{
|
||||
public:
|
||||
|
@ -61,4 +64,6 @@ private:
|
|||
qreal m_defaultWidth;
|
||||
};
|
||||
|
||||
QT_WARNING_POP
|
||||
|
||||
#endif // VCURVEPATHITEM_H
|
||||
|
|
Loading…
Reference in New Issue
Block a user