Compiler warnings.
--HG-- branch : develop
This commit is contained in:
parent
c004f0fbad
commit
17394e8259
|
@ -43,6 +43,9 @@
|
|||
class VCubicBezier;
|
||||
template <class T> class QSharedPointer;
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_GCC("-Weffc++")
|
||||
|
||||
struct VToolCubicBezierInitData : public VAbstractToolInitData
|
||||
{
|
||||
VToolCubicBezierInitData()
|
||||
|
@ -53,6 +56,8 @@ struct VToolCubicBezierInitData : public VAbstractToolInitData
|
|||
VCubicBezier *spline;
|
||||
};
|
||||
|
||||
QT_WARNING_POP
|
||||
|
||||
class VToolCubicBezier : public VAbstractSpline
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
@ -43,6 +43,9 @@
|
|||
class VCubicBezierPath;
|
||||
template <class T> class QSharedPointer;
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_GCC("-Weffc++")
|
||||
|
||||
struct VToolCubicBezierPathInitData : public VAbstractToolInitData
|
||||
{
|
||||
VToolCubicBezierPathInitData()
|
||||
|
@ -53,6 +56,8 @@ struct VToolCubicBezierPathInitData : public VAbstractToolInitData
|
|||
VCubicBezierPath *path;
|
||||
};
|
||||
|
||||
QT_WARNING_POP
|
||||
|
||||
class VToolCubicBezierPath:public VAbstractSpline
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
@ -611,8 +611,8 @@ QVector<VPieceNode> VAbstractTool::PrepareNodes(const VPiecePath &path, VMainGra
|
|||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
quint32 VAbstractTool::PrepareNode(const VPieceNode &node, VMainGraphicsScene *scene,
|
||||
VAbstractPattern *doc, VContainer *data)
|
||||
quint32 VAbstractTool::PrepareNode(const VPieceNode &node, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||
VContainer *data)
|
||||
{
|
||||
SCASSERT(scene != nullptr)
|
||||
SCASSERT(doc != nullptr)
|
||||
|
@ -624,6 +624,7 @@ quint32 VAbstractTool::PrepareNode(const VPieceNode &node, VMainGraphicsScene *s
|
|||
initData.data = data;
|
||||
initData.parse = Document::FullParse;
|
||||
initData.typeCreation = Source::FromGui;
|
||||
initData.scene = scene;
|
||||
|
||||
switch (node.GetTypeTool())
|
||||
{
|
||||
|
|
|
@ -44,11 +44,15 @@
|
|||
#include "../vmisc/vabstractapplication.h"
|
||||
#include "../vmisc/def.h"
|
||||
#include "../vwidgets/vmaingraphicsscene.h"
|
||||
#include "../vmisc/diagnostic.h"
|
||||
#include "vdatatool.h"
|
||||
|
||||
class VGraphicsSimpleTextItem;
|
||||
class VAbstractNode;
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_GCC("-Weffc++")
|
||||
|
||||
struct VAbstractToolInitData
|
||||
{
|
||||
VAbstractToolInitData()
|
||||
|
@ -69,6 +73,8 @@ struct VAbstractToolInitData
|
|||
Source typeCreation;
|
||||
};
|
||||
|
||||
QT_WARNING_POP
|
||||
|
||||
/**
|
||||
* @brief The VAbstractTool abstract class for all tools.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user