diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-01 15:33:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-01 15:33:06 +0000 |
commit | ab5973ab5c1fdc609fab16552652823517cea2c4 (patch) | |
tree | 72b113dd5136d1ecbd279daf6cceea415577fbf6 /svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | |
parent | cf4e47bb16281e286023236355209468dcce58b8 (diff) |
cppcheck: can reduce the scope of this variable
Diffstat (limited to 'svx/source/customshapes/EnhancedCustomShapeFontWork.cxx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx index f1e8a25d2604..3ad3f9f1d097 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx @@ -241,9 +241,9 @@ void GetTextAreaOutline( const FWData& rFWData, const SdrObject* pCustomShape, F if ( xBI.is() ) { nScriptType = xBI->getScriptType( rText, 0 ); - sal_uInt16 nChg = 0; if( i18n::ScriptType::WEAK == nScriptType ) { + sal_uInt16 nChg = 0; nChg = (xub_StrLen)xBI->endOfScript( rText, nChg, nScriptType ); if( nChg < rText.getLength() ) nScriptType = xBI->getScriptType( rText, nChg ); |