diff options
Diffstat (limited to 'dbaccess/source/sdbtools')
-rw-r--r-- | dbaccess/source/sdbtools/connection/tablename.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/sdbtools/connection/tablename.cxx b/dbaccess/source/sdbtools/connection/tablename.cxx index 856674eb2d16..f556773431e2 100644 --- a/dbaccess/source/sdbtools/connection/tablename.cxx +++ b/dbaccess/source/sdbtools/connection/tablename.cxx @@ -41,7 +41,6 @@ #include <connectivity/dbtools.hxx> #include <tools/diagnose_ex.h> #include <tools/string.hxx> -#include <sal/macros.h> //........................................................................ namespace sdbtools @@ -232,7 +231,7 @@ namespace sdbtools bool found = false; size_t i = 0; - for ( ; ( i < SAL_N_ELEMENTS( TypeTable ) ) && !found; ++i ) + for ( ; ( i < sizeof( TypeTable ) / sizeof( TypeTable[0] ) ) && !found; ++i ) if ( TypeTable[i].nCompositionType == _nType ) found = true; if ( !found ) |