summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2009-10-30 17:36:02 +0100
committerMichael Stahl <mst@openoffice.org>2009-10-30 17:36:02 +0100
commitff9f90cf28852703366e853ab7e4f9d5218c8f35 (patch)
treec188e295505be7d7066d707e6267ae869ec9349e /svtools
parent561697e7bafe9c4b31340e4c507907f16b03e1fc (diff)
#i105295#: fix various uninitialized variables reported by valgrind in:
IMapObject::IMapObject() [incompatible interface change!]
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/imapobj.hxx2
-rw-r--r--svtools/source/misc/imap.cxx7
2 files changed, 8 insertions, 1 deletions
diff --git a/svtools/inc/svtools/imapobj.hxx b/svtools/inc/svtools/imapobj.hxx
index 3671bf50878c..8f95c41d1c54 100644
--- a/svtools/inc/svtools/imapobj.hxx
+++ b/svtools/inc/svtools/imapobj.hxx
@@ -96,7 +96,7 @@ public:
static rtl_TextEncoding nActualTextEncoding;
- IMapObject() {};
+ IMapObject();
IMapObject( const String& rURL,
const String& rAltText,
const String& rDesc,
diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx
index 9fb60111094e..965292803e43 100644
--- a/svtools/source/misc/imap.cxx
+++ b/svtools/source/misc/imap.cxx
@@ -64,6 +64,12 @@ UINT16 IMapObject::nActualTextEncoding = (UINT16) RTL_TEXTENCODING_DONTKNOW;
#pragma optimize ( "", off )
#endif
+IMapObject::IMapObject()
+ : bActive( false )
+ , nReadVersion( 0 )
+{
+}
+
IMapObject::IMapObject( const String& rURL, const String& rAltText, const String& rDesc,
const String& rTarget, const String& rName, BOOL bURLActive )
: aURL( rURL )
@@ -72,6 +78,7 @@ IMapObject::IMapObject( const String& rURL, const String& rAltText, const String
, aTarget( rTarget )
, aName( rName )
, bActive( bURLActive )
+, nReadVersion( 0 )
{
}