diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-09-29 19:46:13 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:33 +0200 |
commit | 1d2870f33c0489119f4c01e0fc5c567d6c0d021c (patch) | |
tree | 03e4906d574db790e109033ae2f5f920b3f53a27 /svtools | |
parent | 3150a3399683d1e3115f7a1a0550a3efb6c94f9e (diff) |
cppcheck scope reduction in svtools... winwmf.cxx
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter/wmf/winwmf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/filter/wmf/winwmf.cxx b/svtools/source/filter/wmf/winwmf.cxx index 5a8e824e46ca..c08f6e108f76 100644 --- a/svtools/source/filter/wmf/winwmf.cxx +++ b/svtools/source/filter/wmf/winwmf.cxx @@ -414,7 +414,6 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc ) case W_META_EXTTEXTOUT: { - sal_Int16 nDx = 0, nDxTmp = 0; sal_uInt16 nLen = 0, nOptions = 0; sal_Int32 nRecordPos, nRecordSize = 0, nOriginalTextLen, nNewTextLen; Point aPosition; @@ -459,6 +458,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc ) if ( ( ( nDxAryEntries % nOriginalTextLen ) == 0 ) && ( nNewTextLen <= nOriginalTextLen ) ) { + sal_Int16 nDx = 0, nDxTmp = 0; sal_uInt16 i; //needed just outside the for pDXAry = new sal_Int32[ nNewTextLen ]; for (i = 0; i < nNewTextLen; i++ ) |