diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-08-15 00:04:55 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-08-15 00:04:55 +0200 |
commit | 1d6ef2446eaaf9e412b76e7b792d6f0af1783460 (patch) | |
tree | 73f4b2b9f02a6b5647dd5ada32981e29e8e67b07 /dbaccess | |
parent | 79102024ccbc054c8b76dbc2cd3c9e253e9f3d9e (diff) |
Reduce scope + use SAL_N_ELEMENTS
Change-Id: I33fd212f6ab82f802fa85af804980c2e8c4c9ec7
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/misc/WCopyTable.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx index f8e86dd470ec..c00dc88bedb5 100644 --- a/dbaccess/source/ui/misc/WCopyTable.cxx +++ b/dbaccess/source/ui/misc/WCopyTable.cxx @@ -171,8 +171,6 @@ void ObjectCopySource::copyFilterAndSortingTo( const Reference< XConnection >& _ ,::std::pair< OUString, OUString >(PROPERTY_ORDER,OUString(" ORDER BY ")) }; - size_t i = 0; - try { const String sSourceName = (::dbtools::composeTableNameForSelect(m_xConnection,m_xObject) + OUString(".")); @@ -184,7 +182,7 @@ void ObjectCopySource::copyFilterAndSortingTo( const Reference< XConnection >& _ sStatement += OUString(" WHERE 0=1"); - for ( i=0; i < sizeof( aProperties ) / sizeof( aProperties[0] ); ++i ) + for ( size_t i=0; i < SAL_N_ELEMENTS(aProperties); ++i ) { if ( m_xObjectPSI->hasPropertyByName( aProperties[i].first ) ) { |