summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/doc/oleprops.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx
index dbf446b4a11c..7e412e6e2c9e 100644
--- a/sfx2/source/doc/oleprops.cxx
+++ b/sfx2/source/doc/oleprops.cxx
@@ -366,12 +366,12 @@ SfxOleCodePageProperty::SfxOleCodePageProperty() :
{
}
-void SfxOleCodePageProperty::ImplLoad( SvStream& rStrm )
+void SfxOleCodePageProperty::ImplLoad(SvStream& rStrm)
{
// property type is signed int16, but we use always unsigned int16 for codepages
- sal_uInt16 nCodePage;
- rStrm.ReadUInt16( nCodePage );
- SetCodePage( nCodePage );
+ sal_uInt16 nCodePage(0);
+ rStrm.ReadUInt16(nCodePage);
+ SetCodePage(nCodePage);
}
void SfxOleCodePageProperty::ImplSave( SvStream& rStrm )