summaryrefslogtreecommitdiff
path: root/sd/source/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-07 13:18:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-07 13:47:03 +0100
commitdcfa6ba11f23c45fcbe82d15aff3741bbb930569 (patch)
treefd27d0b38c11ac43b7cf8598b66fe113e00dcaeb /sd/source/filter
parent7ebd6b5dcff979c992b16fe7d2d3b7125ccd8948 (diff)
coverity#708128 Uninitialized scalar field
Change-Id: Ic22b6640ba6b87769bdf00bc630d463de1ba04ad
Diffstat (limited to 'sd/source/filter')
-rw-r--r--sd/source/filter/ppt/propread.hxx21
1 files changed, 12 insertions, 9 deletions
diff --git a/sd/source/filter/ppt/propread.hxx b/sd/source/filter/ppt/propread.hxx
index c5f6512d00ed..5a623559d73b 100644
--- a/sd/source/filter/ppt/propread.hxx
+++ b/sd/source/filter/ppt/propread.hxx
@@ -113,15 +113,18 @@ struct PropEntry
class PropItem : public SvMemoryStream
{
- sal_uInt16 mnTextEnc;
-
- public :
- PropItem(){};
- void Clear();
-
- void SetTextEncoding( sal_uInt16 nTextEnc ){ mnTextEnc = nTextEnc; };
- sal_Bool Read( OUString& rString, sal_uInt32 nType = VT_EMPTY, sal_Bool bDwordAlign = sal_True );
- PropItem& operator=( PropItem& rPropItem );
+ sal_uInt16 mnTextEnc;
+
+public:
+ PropItem()
+ : mnTextEnc(RTL_TEXTENCODING_DONTKNOW)
+ {
+ }
+ void Clear();
+
+ void SetTextEncoding( sal_uInt16 nTextEnc ){ mnTextEnc = nTextEnc; };
+ sal_Bool Read( OUString& rString, sal_uInt32 nType = VT_EMPTY, sal_Bool bDwordAlign = sal_True );
+ PropItem& operator=( PropItem& rPropItem );
using SvStream::Read;
};