[Libreoffice-commits] .: svx/inc
David Tardon
dtardon at kemper.freedesktop.org
Sat May 21 02:05:08 PDT 2011
svx/inc/svx/framelink.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit eba67987db44e2c15856e79a6327061bea027225
Author: David Tardon <dtardon at redhat.com>
Date: Sat May 21 10:52:41 2011 +0200
do not leave stuff uninitialized
diff --git a/svx/inc/svx/framelink.hxx b/svx/inc/svx/framelink.hxx
index b7e08fa..6418e47 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 ) :
More information about the Libreoffice-commits
mailing list