summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-02 13:28:04 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:42 +0200
commit10e66bac5ce908ffcb869bf33f075c428459a5e2 (patch)
tree165f0070c374053c31fa6d84f4d1ce541129b410 /extensions
parent923c2387451e99fa828bafb45da006da6ceb13b5 (diff)
cppcheck reduce scope of var in extensions/...sane.cxx
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/scanner/sane.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/extensions/source/scanner/sane.cxx b/extensions/source/scanner/sane.cxx
index 8f0be90e00c8..39638ca51767 100644
--- a/extensions/source/scanner/sane.cxx
+++ b/extensions/source/scanner/sane.cxx
@@ -305,8 +305,6 @@ void Sane::ReloadOptions()
sal_Bool Sane::Open( const char* name )
{
- int i;
-
SANE_Status nStatus = p_open( (SANE_String_Const)name, &maHandle );
FAIL_STATE( nStatus, "sane_open", sal_False );
@@ -315,7 +313,7 @@ sal_Bool Sane::Open( const char* name )
if( mnDevice == -1 )
{
ByteString aDevice( name );
- for( i = 0; i < nDevices; i++ )
+ for( int i = 0; i < nDevices; i++ )
{
if( aDevice.Equals( ppDevices[i]->name ) )
{