summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-19 09:52:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-19 10:16:59 +0000
commit02aaf5138095f8a8436363d2bc687c32079a1864 (patch)
treeea9b3f5ebab8175d1c11ca47404fa0c7cbe9eea3 /sc
parent581d1e35f86077ce91a59ad3dc4760cda0b19071 (diff)
can move the decls to first use now
Change-Id: If501dfd0a2bebac45d13110af739e1f22444b823
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xistring.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/sc/source/filter/excel/xistring.cxx b/sc/source/filter/excel/xistring.cxx
index 2fafbbeec841..6475619f848a 100644
--- a/sc/source/filter/excel/xistring.cxx
+++ b/sc/source/filter/excel/xistring.cxx
@@ -118,9 +118,8 @@ void XclImpString::ReadFormats( XclImpStream& rStrm, XclFormatRunVec& rFormats,
{
for( sal_uInt16 nIdx = 0; nIdx < nRunCount; ++nIdx )
{
- sal_uInt16 nChar, nFontIdx;
- nChar = rStrm.ReaduInt16();
- nFontIdx = rStrm.ReaduInt16();
+ sal_uInt16 nChar = rStrm.ReaduInt16();
+ sal_uInt16 nFontIdx = rStrm.ReaduInt16();
AppendFormat( rFormats, nChar, nFontIdx );
}
}
@@ -128,9 +127,8 @@ void XclImpString::ReadFormats( XclImpStream& rStrm, XclFormatRunVec& rFormats,
{
for( sal_uInt16 nIdx = 0; nIdx < nRunCount; ++nIdx )
{
- sal_uInt8 nChar, nFontIdx;
- nChar = rStrm.ReaduInt8();
- nFontIdx = rStrm.ReaduInt8();
+ sal_uInt8 nChar = rStrm.ReaduInt8();
+ sal_uInt8 nFontIdx = rStrm.ReaduInt8();
AppendFormat( rFormats, nChar, nFontIdx );
}
}
@@ -144,9 +142,8 @@ void XclImpString::ReadObjFormats( XclImpStream& rStrm, XclFormatRunVec& rFormat
rFormats.reserve( nRunCount );
for( sal_uInt16 nIdx = 0; nIdx < nRunCount; ++nIdx )
{
- sal_uInt16 nChar, nFontIdx;
- nChar = rStrm.ReaduInt16();
- nFontIdx = rStrm.ReaduInt16();
+ sal_uInt16 nChar = rStrm.ReaduInt16();
+ sal_uInt16 nFontIdx = rStrm.ReaduInt16();
rStrm.Ignore( 4 );
AppendFormat( rFormats, nChar, nFontIdx );
}