diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-28 12:08:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-28 12:08:46 +0000 |
commit | ed0827edcabf4f5a82933fd2b0826bd24115f657 (patch) | |
tree | 0ef3c6331baa900f260fa9a580c2ff6fe9fd4071 /svtools | |
parent | aa3dc18042e3825bcf33ab0fafac249cacbce367 (diff) |
cppcheck: reduce the scope of this variable
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter.vcl/ixbm/xbmread.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/filter.vcl/ixbm/xbmread.cxx b/svtools/source/filter.vcl/ixbm/xbmread.cxx index 6d0c34cc5c56..6adb1e4a621b 100644 --- a/svtools/source/filter.vcl/ixbm/xbmread.cxx +++ b/svtools/source/filter.vcl/ixbm/xbmread.cxx @@ -287,7 +287,6 @@ ReadState XBMReader::ReadXBM( Graphic& rGraphic ) if ( rIStm.GetError() != ERRCODE_IO_PENDING ) { ByteString aLine; - int nValue; rIStm.Seek( nLastPos ); bStatus = FALSE; @@ -295,6 +294,7 @@ ReadState XBMReader::ReadXBM( Graphic& rGraphic ) if ( bStatus ) { + int nValue; if ( ( nValue = (int) ParseDefine( aLine.GetBuffer() ) ) > 0 ) { nWidth = nValue; |