Hide diagnostic "-Weffc++" for private shared data.

--HG--
branch : develop
This commit is contained in:
dismine 2014-08-23 09:18:07 +03:00
parent 5ab476319a
commit b61b705303
16 changed files with 134 additions and 0 deletions

View File

@ -38,6 +38,11 @@
#include <QCoreApplication>
#include <QHash>
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VContainerData : public QSharedData
{
public:
@ -71,6 +76,10 @@ public:
QHash<quint32, VDetail> details;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
/**
* @brief The VContainer class container of all variables.
*/

View File

@ -31,6 +31,11 @@
#include <QSharedData>
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VCurveLengthData : public QSharedData
{
public:
@ -53,5 +58,8 @@ public:
quint32 parentId;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VCURVELENGTH_P_H

View File

@ -31,6 +31,11 @@
#include <QSharedData>
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VIncrementData : public QSharedData
{
public:
@ -53,5 +58,8 @@ public:
quint32 id;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VINCREMENT_P_H

View File

@ -32,6 +32,11 @@
#include <QSharedData>
#include "../options.h"
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VInternalVariableData : public QSharedData
{
public:
@ -54,5 +59,8 @@ public:
QString name;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VINTERNALVARIABLE_P_H

View File

@ -31,6 +31,11 @@
#include <QSharedData>
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VLineAngleData : public QSharedData
{
public:
@ -53,5 +58,8 @@ public:
quint32 p2Id;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VLINEANGLE_P_H

View File

@ -31,6 +31,11 @@
#include <QSharedData>
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VLengthLineData : public QSharedData
{
public:
@ -53,5 +58,8 @@ public:
quint32 p2Id;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VLINELENGTH_P_H

View File

@ -31,6 +31,11 @@
#include <QSharedData>
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VMeasurementData : public QSharedData
{
public:
@ -55,5 +60,8 @@ public:
QString _tagName;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VMEASUREMENT_P_H

View File

@ -31,6 +31,11 @@
#include <QSharedData>
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VVariableData : public QSharedData
{
public:
@ -66,4 +71,8 @@ public:
QString description;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VVARIABLE_P_H

View File

@ -33,6 +33,11 @@
#include "../options.h"
#include "vpointf.h"
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VArcData : public QSharedData
{
public:
@ -86,4 +91,8 @@ public:
VPointF center;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VARC_P_H

View File

@ -33,6 +33,11 @@
#include "../options.h"
#include "vnodedetail.h"
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VDetailData : public QSharedData
{
public:
@ -86,4 +91,8 @@ public:
qreal width;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VDETAIL_P_H

View File

@ -32,6 +32,11 @@
#include <QSharedData>
#include "../options.h"
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VGObjectData : public QSharedData
{
public:
@ -65,4 +70,8 @@ public:
Draw mode;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VGOBJECT_P_H

View File

@ -32,6 +32,11 @@
#include <QSharedData>
#include "../options.h"
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VNodeDetailData : public QSharedData
{
public:
@ -71,4 +76,8 @@ public:
qreal my;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VNODEDETAIL_P_H

View File

@ -33,6 +33,11 @@
#include "../options.h"
#include <QPointF>
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VPointFData : public QSharedData
{
public:
@ -72,5 +77,8 @@ public:
qreal _y;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VPOINTF_P_H

View File

@ -34,6 +34,11 @@
#include "vpointf.h"
#include <QLineF>
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VSplineData : public QSharedData
{
public:
@ -110,5 +115,8 @@ public:
qreal kCurve;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VSPLINE_P_H

View File

@ -33,6 +33,11 @@
#include "../options.h"
#include "vsplinepoint.h"
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VSplinePathData : public QSharedData
{
public:
@ -65,5 +70,8 @@ public:
qint32 maxCountPoints;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VSPLINEPATH_P_H

View File

@ -33,6 +33,11 @@
#include "../options.h"
#include "vpointf.h"
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#endif
class VSplinePointData : public QSharedData
{
public:
@ -75,5 +80,8 @@ public:
qreal kAsm2;
};
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
#endif // VSPLINEPOINT_P_H