Fixed warnings in Linux
--HG-- branch : feature
This commit is contained in:
parent
92a7f21621
commit
15834562af
|
@ -65,8 +65,11 @@ public:
|
||||||
extrusion = L.extrusion;
|
extrusion = L.extrusion;
|
||||||
attributes = L.attributes;
|
attributes = L.attributes;
|
||||||
|
|
||||||
|
if ( &L == this )
|
||||||
|
{
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called for every code / value tuple of the DXF file. The complete DXF file
|
* Called for every code / value tuple of the DXF file. The complete DXF file
|
||||||
|
|
|
@ -43,26 +43,26 @@
|
||||||
DL_Dxf::DL_Dxf()
|
DL_Dxf::DL_Dxf()
|
||||||
: version(DL_VERSION_2000),
|
: version(DL_VERSION_2000),
|
||||||
polylineLayer(),
|
polylineLayer(),
|
||||||
vertices(NULL),
|
vertices(nullptr),
|
||||||
maxVertices(0),
|
maxVertices(0),
|
||||||
vertexIndex(0),
|
vertexIndex(0),
|
||||||
|
|
||||||
knots(NULL),
|
knots(nullptr),
|
||||||
maxKnots(0),
|
maxKnots(0),
|
||||||
knotIndex(0),
|
knotIndex(0),
|
||||||
|
|
||||||
weights(NULL),
|
weights(nullptr),
|
||||||
weightIndex(0),
|
weightIndex(0),
|
||||||
|
|
||||||
controlPoints(NULL),
|
controlPoints(nullptr),
|
||||||
maxControlPoints(0),
|
maxControlPoints(0),
|
||||||
controlPointIndex(0),
|
controlPointIndex(0),
|
||||||
|
|
||||||
fitPoints(NULL),
|
fitPoints(nullptr),
|
||||||
maxFitPoints(0),
|
maxFitPoints(0),
|
||||||
fitPointIndex(0),
|
fitPointIndex(0),
|
||||||
|
|
||||||
leaderVertices(NULL),
|
leaderVertices(nullptr),
|
||||||
maxLeaderVertices(0),
|
maxLeaderVertices(0),
|
||||||
leaderVertexIndex(0),
|
leaderVertexIndex(0),
|
||||||
|
|
||||||
|
@ -80,27 +80,27 @@ DL_Dxf::DL_Dxf()
|
||||||
*/
|
*/
|
||||||
DL_Dxf::~DL_Dxf()
|
DL_Dxf::~DL_Dxf()
|
||||||
{
|
{
|
||||||
if (vertices!=NULL)
|
if (vertices!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] vertices;
|
delete[] vertices;
|
||||||
}
|
}
|
||||||
if (knots!=NULL)
|
if (knots!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] knots;
|
delete[] knots;
|
||||||
}
|
}
|
||||||
if (controlPoints!=NULL)
|
if (controlPoints!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] controlPoints;
|
delete[] controlPoints;
|
||||||
}
|
}
|
||||||
if (fitPoints!=NULL)
|
if (fitPoints!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] fitPoints;
|
delete[] fitPoints;
|
||||||
}
|
}
|
||||||
if (weights!=NULL)
|
if (weights!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] weights;
|
delete[] weights;
|
||||||
}
|
}
|
||||||
if (leaderVertices!=NULL)
|
if (leaderVertices!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] leaderVertices;
|
delete[] leaderVertices;
|
||||||
}
|
}
|
||||||
|
@ -1617,7 +1617,7 @@ bool DL_Dxf::handleLWPolylineData(DL_CreationInterface* /*creationInterface*/)
|
||||||
maxVertices = toInt(groupValue);
|
maxVertices = toInt(groupValue);
|
||||||
if (maxVertices>0)
|
if (maxVertices>0)
|
||||||
{
|
{
|
||||||
if (vertices!=NULL)
|
if (vertices!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] vertices;
|
delete[] vertices;
|
||||||
}
|
}
|
||||||
|
@ -1673,7 +1673,7 @@ bool DL_Dxf::handleSplineData(DL_CreationInterface* /*creationInterface*/)
|
||||||
maxKnots = toInt(groupValue);
|
maxKnots = toInt(groupValue);
|
||||||
if (maxKnots>0)
|
if (maxKnots>0)
|
||||||
{
|
{
|
||||||
if (knots!=NULL)
|
if (knots!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] knots;
|
delete[] knots;
|
||||||
}
|
}
|
||||||
|
@ -1693,11 +1693,11 @@ bool DL_Dxf::handleSplineData(DL_CreationInterface* /*creationInterface*/)
|
||||||
maxControlPoints = toInt(groupValue);
|
maxControlPoints = toInt(groupValue);
|
||||||
if (maxControlPoints>0)
|
if (maxControlPoints>0)
|
||||||
{
|
{
|
||||||
if (controlPoints!=NULL)
|
if (controlPoints!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] controlPoints;
|
delete[] controlPoints;
|
||||||
}
|
}
|
||||||
if (weights!=NULL)
|
if (weights!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] weights;
|
delete[] weights;
|
||||||
}
|
}
|
||||||
|
@ -1722,7 +1722,7 @@ bool DL_Dxf::handleSplineData(DL_CreationInterface* /*creationInterface*/)
|
||||||
maxFitPoints = toInt(groupValue);
|
maxFitPoints = toInt(groupValue);
|
||||||
if (maxFitPoints>0)
|
if (maxFitPoints>0)
|
||||||
{
|
{
|
||||||
if (fitPoints!=NULL)
|
if (fitPoints!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] fitPoints;
|
delete[] fitPoints;
|
||||||
}
|
}
|
||||||
|
@ -1812,7 +1812,7 @@ bool DL_Dxf::handleLeaderData(DL_CreationInterface* /*creationInterface*/)
|
||||||
maxLeaderVertices = toInt(groupValue);
|
maxLeaderVertices = toInt(groupValue);
|
||||||
if (maxLeaderVertices>0)
|
if (maxLeaderVertices>0)
|
||||||
{
|
{
|
||||||
if (leaderVertices!=NULL)
|
if (leaderVertices!=nullptr)
|
||||||
{
|
{
|
||||||
delete[] leaderVertices;
|
delete[] leaderVertices;
|
||||||
}
|
}
|
||||||
|
@ -2279,7 +2279,7 @@ bool DL_Dxf::handleHatchData(DL_CreationInterface* creationInterface)
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2303,7 +2303,7 @@ bool DL_Dxf::handleHatchData(DL_CreationInterface* creationInterface)
|
||||||
hatchEdge.defined = true;
|
hatchEdge.defined = true;
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2332,7 +2332,7 @@ bool DL_Dxf::handleHatchData(DL_CreationInterface* creationInterface)
|
||||||
hatchEdge.defined = true;
|
hatchEdge.defined = true;
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2367,7 +2367,7 @@ bool DL_Dxf::handleHatchData(DL_CreationInterface* creationInterface)
|
||||||
hatchEdge.defined = true;
|
hatchEdge.defined = true;
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2449,7 +2449,7 @@ bool DL_Dxf::handleHatchData(DL_CreationInterface* creationInterface)
|
||||||
hatchEdge.endTangentY = toReal(groupValue);
|
hatchEdge.endTangentY = toReal(groupValue);
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -210,8 +210,11 @@ public:
|
||||||
appDictionaryHandle = L.appDictionaryHandle;
|
appDictionaryHandle = L.appDictionaryHandle;
|
||||||
styleHandleStd = L.styleHandleStd;
|
styleHandleStd = L.styleHandleStd;
|
||||||
|
|
||||||
|
if ( &L == this )
|
||||||
|
{
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool in(const std::string& file,
|
bool in(const std::string& file,
|
||||||
DL_CreationInterface* creationInterface);
|
DL_CreationInterface* creationInterface);
|
||||||
|
|
|
@ -95,7 +95,7 @@ struct DXFLIB_EXPORT DL_LinetypeData
|
||||||
int flags,
|
int flags,
|
||||||
int numberOfDashes,
|
int numberOfDashes,
|
||||||
double patternLength,
|
double patternLength,
|
||||||
double* pattern = NULL
|
double* pattern = nullptr
|
||||||
)
|
)
|
||||||
: name(name),
|
: name(name),
|
||||||
description(description),
|
description(description),
|
||||||
|
@ -129,8 +129,11 @@ struct DXFLIB_EXPORT DL_LinetypeData
|
||||||
patternLength = L.patternLength;
|
patternLength = L.patternLength;
|
||||||
pattern = L.pattern;
|
pattern = L.pattern;
|
||||||
|
|
||||||
|
if ( &L == this )
|
||||||
|
{
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** Linetype name */
|
/** Linetype name */
|
||||||
std::string name;
|
std::string name;
|
||||||
|
|
|
@ -144,8 +144,11 @@ public:
|
||||||
setDirection(extru.direction[0], extru.direction[1], extru.direction[2]);
|
setDirection(extru.direction[0], extru.direction[1], extru.direction[2]);
|
||||||
setElevation(extru.elevation);
|
setElevation(extru.elevation);
|
||||||
|
|
||||||
|
if ( &extru == this )
|
||||||
|
{
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user