diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-07 13:18:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-07 13:47:03 +0100 |
commit | dcfa6ba11f23c45fcbe82d15aff3741bbb930569 (patch) | |
tree | fd27d0b38c11ac43b7cf8598b66fe113e00dcaeb /sd | |
parent | 7ebd6b5dcff979c992b16fe7d2d3b7125ccd8948 (diff) |
coverity#708128 Uninitialized scalar field
Change-Id: Ic22b6640ba6b87769bdf00bc630d463de1ba04ad
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/ppt/propread.hxx | 21 |
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; }; |