diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-02-22 21:04:29 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-02-22 21:06:43 +0200 |
commit | fb1991e7c1b17bd4e3b5e0f9aa572d958eb243f4 (patch) | |
tree | 1872ea890fe8e8b7b8e0756309c9ab99a643bde6 /filter | |
parent | 754bd309dd346f9930a6ede418ab01fcfa5f74f9 (diff) |
WaE: ´nLen´ may be used uninitialized in this function
Looking at the change to this line in e904749eb8e1109f9a884b309fad6de5f78ad623
, I think this line was changed incorrectly. So I won't simply "fix" the
warninig by initialising nLen to some value like zero, but instead reinstate
the use of the nCharCount2 here instead of nLen.
Change-Id: Ice4a5cb751a244c38b3cfc4e05e3206cb939484a
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 373e9096fbf7..99f662c5bb69 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -5195,7 +5195,7 @@ void PPTStyleTextPropReader::Init( SvStream& rIn, SdrPowerPointImport& rMan, con } else { - aCharPropSet.maString = aString.copy(nCharAnzRead, nLen); + aCharPropSet.maString = aString.copy(nCharAnzRead, nCharCount); aCharPropList.push_back( new PPTCharPropSet( aCharPropSet, nCurrentPara ) ); nCharAnzRead += nCharCount; bEmptyParaPossible = sal_False; |