summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-14 10:46:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-14 15:14:27 +0200
commit546c35519125a769755330c961c7b8fc61e24d89 (patch)
tree0b73735081bd279b89b93dabc5c35dee6ec08b94 /sax
parent92b7acdf2a1159af8a31da22ce6227950f709040 (diff)
use more SAL_N_ELEMENTS part 2
Change-Id: If00e371c3cd3ae616309a172c875faed016e391b Reviewed-on: https://gerrit.libreoffice.org/38773 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r--sax/qa/cppunit/xmlimport.cxx4
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
{