diff options
Diffstat (limited to 'sax/qa')
-rw-r--r-- | sax/qa/cppunit/xmlimport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sax/qa/cppunit/xmlimport.cxx b/sax/qa/cppunit/xmlimport.cxx index 3e362e890111..f08c0357af28 100644 --- a/sax/qa/cppunit/xmlimport.cxx +++ b/sax/qa/cppunit/xmlimport.cxx @@ -383,7 +383,7 @@ void XMLImportTest::parse() "multiplens.xml", "multiplepfx.xml", "nstoattributes.xml", "nestedns.xml", "testthreading.xml"}; - for (sal_uInt16 i = 0; i < sizeof( fileNames ) / sizeof( OUString ); i++) + for (sal_uInt16 i = 0; i < SAL_N_ELEMENTS( fileNames ); i++) { InputSource source; source.sSystemId = "internal"; @@ -412,7 +412,7 @@ void XMLImportTest::testMissingNamespaceDeclaration() args[0] <<= OUString("IgnoreMissingNSDecl"); xInit->initialize( args ); - for (sal_uInt16 i = 0; i < sizeof( fileNames ) / sizeof( OUString ); i++) + for (sal_uInt16 i = 0; i < SAL_N_ELEMENTS( fileNames ); i++) { try { |