summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-02-13 21:26:44 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-02-13 21:26:44 +0100
commit9a8281f05871b86bac15c54bcee01f3c40f7ee0d (patch)
tree10624935260d82912086e2caf841911151301e5d /filter
parente52792c9e0aec6e095137cf8d2f68d1cbec90e80 (diff)
Fix scope + member variables not initialized
Change-Id: I0a2c14246a814859c9752f96aaad9f28f6d59c75
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/idxf/dxf2mtf.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/filter/source/graphicfilter/idxf/dxf2mtf.cxx b/filter/source/graphicfilter/idxf/dxf2mtf.cxx
index c22e0a4b4b7e..be2732c4a088 100644
--- a/filter/source/graphicfilter/idxf/dxf2mtf.cxx
+++ b/filter/source/graphicfilter/idxf/dxf2mtf.cxx
@@ -115,7 +115,6 @@ DXFLineInfo DXF2GDIMetaFile::LTypeToDXFLineInfo(const char * sLineType)
DXFLineInfo DXF2GDIMetaFile::GetEntityDXFLineInfo(const DXFBasicEntity & rE)
{
DXFLineInfo aDXFLineInfo;
- const DXFLayer * pLayer;
aDXFLineInfo.eStyle = LINE_SOLID;
aDXFLineInfo.fWidth = 0;
@@ -128,7 +127,7 @@ DXFLineInfo DXF2GDIMetaFile::GetEntityDXFLineInfo(const DXFBasicEntity & rE)
if (strcmp(rE.sLineType,"BYLAYER")==0) {
if (rE.sLayer[0]=='0' && rE.sLayer[1]==0) aDXFLineInfo=aParentLayerDXFLineInfo;
else {
- pLayer=pDXF->aTables.SearchLayer(rE.sLayer);
+ const DXFLayer * pLayer=pDXF->aTables.SearchLayer(rE.sLayer);
if (pLayer!=NULL) aDXFLineInfo=LTypeToDXFLineInfo(pLayer->sLineType);
else aDXFLineInfo=aParentLayerDXFLineInfo;
}
@@ -746,7 +745,7 @@ void DXF2GDIMetaFile::DrawEntities(const DXFEntities & rEntities,
}
-DXF2GDIMetaFile::DXF2GDIMetaFile()
+DXF2GDIMetaFile::DXF2GDIMetaFile():pVirDev(NULL), pDXF(NULL), nBlockColor(0), nParentLayerColor(0)
{
}