summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-01-05 12:15:24 +0100
committerRadek Doulik <rodo@novell.com>2011-01-05 12:15:24 +0100
commitc089f09311e87b920fb45ebe1218954438eb6402 (patch)
treed168beb31430984001ec76b27f71049cc524d748 /svx
parent886f83999b5077e5299f31886937959f78da0b8c (diff)
cppcheck cleaning
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdfmtf.cxx1
-rw-r--r--svx/source/svdraw/svdocirc.cxx1
-rw-r--r--svx/source/svdraw/svdoole2.cxx1
-rw-r--r--svx/source/toolbars/extrusionbar.cxx6
4 files changed, 6 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdfmtf.cxx b/svx/source/svdraw/svdfmtf.cxx
index 1ea7fb0aca..1984b654db 100644
--- a/svx/source/svdraw/svdfmtf.cxx
+++ b/svx/source/svdraw/svdfmtf.cxx
@@ -82,6 +82,7 @@ ImpSdrGDIMetaFileImport::ImpSdrGDIMetaFileImport(SdrModel& rModel):
nLineWidth(0),
maLineJoin(basegfx::B2DLINEJOIN_NONE),
maDash(XDASH_RECT, 0, 0, 0, 0, 0),
+ fScaleX(0.0),fScaleY(0.0),
bFntDirty(TRUE),
bLastObjWasPolyWithoutLine(FALSE),bNoLine(FALSE),bNoFill(FALSE),bLastObjWasLine(FALSE)
{
diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx
index e175402074..ee5bcb009c 100644
--- a/svx/source/svdraw/svdocirc.cxx
+++ b/svx/source/svdraw/svdocirc.cxx
@@ -387,6 +387,7 @@ public:
nWdt(0),
nStart(0),
nEnd(0),
+ nWink(0),
bRight(FALSE)
{}
void SetCreateParams(SdrDragStat& rStat);
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index 145519ceee..66aaa1bdcb 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -700,6 +700,7 @@ public:
SdrOle2ObjImpl()
: pGraphicObject( NULL )
+ , pLightClient ( NULL )
// #107645#
// init to start situation, loading did not fail
, mbLoadingOLEObjectFailed( sal_False )
diff --git a/svx/source/toolbars/extrusionbar.cxx b/svx/source/toolbars/extrusionbar.cxx
index 63e52191a0..06296ac02f 100644
--- a/svx/source/toolbars/extrusionbar.cxx
+++ b/svx/source/toolbars/extrusionbar.cxx
@@ -686,10 +686,7 @@ void getExtrusionDirectionState( SdrView* pSdrView, SfxItemSet& rSet )
sal_Bool bParallel = sal_True;
Position3D aViewPoint( 3472, -3472, 25000 );
- double fOriginX = 0.50;
- double fOriginY = -0.50;
double fSkewAngle = -135;
- double fSkew = 50.0;
pAny = aGeometryItem.GetPropertyValueByName( sExtrusion, sProjectionMode );
sal_Int16 nProjectionMode = sal_Int16();
@@ -698,6 +695,7 @@ void getExtrusionDirectionState( SdrView* pSdrView, SfxItemSet& rSet )
if( bParallel )
{
+ double fSkew = 50.0;
EnhancedCustomShapeParameterPair aSkewPropPair;
pAny = aGeometryItem.GetPropertyValueByName( sExtrusion, sSkew );
if( pAny && ( *pAny >>= aSkewPropPair ) )
@@ -712,6 +710,8 @@ void getExtrusionDirectionState( SdrView* pSdrView, SfxItemSet& rSet )
}
else
{
+ double fOriginX = 0.50;
+ double fOriginY = -0.50;
pAny = aGeometryItem.GetPropertyValueByName( sExtrusion, sViewPoint );
if( pAny )
*pAny >>= aViewPoint;