From 02aaf5138095f8a8436363d2bc687c32079a1864 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 19 Dec 2014 09:52:19 +0000 Subject: can move the decls to first use now Change-Id: If501dfd0a2bebac45d13110af739e1f22444b823 --- sc/source/filter/excel/xistring.cxx | 15 ++++++--------- 1 file 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 ); } -- cgit