summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-05-21 10:52:41 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-21 10:52:41 +0200
commit15083950a5c814dd5765ef49751a2700052a5a99 (patch)
treeb91f2e26fdc20bfa76d631b47c482cbc16baa7a6 /svx/inc
parent4f8ebe363e3e83c821e3b326c1d98e03597202d8 (diff)
do not leave stuff uninitialized
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/svx/framelink.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/inc/svx/framelink.hxx b/svx/inc/svx/framelink.hxx
index b7e08fa637f7..6418e47d285a 100644
--- a/svx/inc/svx/framelink.hxx
+++ b/svx/inc/svx/framelink.hxx
@@ -116,11 +116,11 @@ class SVX_DLLPUBLIC Style
{
public:
/** Constructs an invisible frame style. */
- inline explicit Style() : meRefMode( REFMODE_CENTERED ), mnPrim( 0 ), mnDist( 0 ), mnSecn( 0 ), mnType( editeng::SOLID ) {}
+ inline explicit Style() : meRefMode( REFMODE_CENTERED ), mnType( editeng::SOLID ) { Clear(); }
/** Constructs a frame style with passed line widths. */
inline explicit Style( sal_uInt16 nP, sal_uInt16 nD, sal_uInt16 nS, editeng::SvxBorderStyle nType ) :
meRefMode( REFMODE_CENTERED ), mnType( nType )
- { Set( nP, nD, nS ); }
+ { Clear(); Set( nP, nD, nS ); }
/** Constructs a frame style with passed color and line widths. */
inline explicit Style( const Color& rColorPrim, const Color& rColorSecn, const Color& rColorGap, bool bUseGapColor,
sal_uInt16 nP, sal_uInt16 nD, sal_uInt16 nS, editeng::SvxBorderStyle nType ) :