summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-05 22:49:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-08 13:04:43 +0100
commit4b596c2e54dbdf04b6a044487b6a9856a7fedcd0 (patch)
treebf909cbc207148685715a066a6bfef75aa5cda6f /dbaccess
parent75c5262d94c96db82393d622dae02ac8e7f4681e (diff)
use SAL_N_ELEMENTS
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index 8ab98cade86c..99c004bd9ccc 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -583,7 +583,7 @@ sal_Bool SbaTableQueryBrowser::InitializeForm( const Reference< XPropertySet > &
PROPERTY_HAVING_CLAUSE,
PROPERTY_ORDER
};
- for ( size_t i=0; i < sizeof( aTransferProperties ) / sizeof( aTransferProperties[0] ); ++i )
+ for (size_t i = 0; i < SAL_N_ELEMENTS(aTransferProperties); ++i)
{
if ( !xPSI->hasPropertyByName( aTransferProperties[i] ) )
continue;