summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-01-10 16:00:18 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-01-10 16:52:33 +0100
commit2c3d0ff9f83aab89980529da2aa3837390b84ef7 (patch)
treea7ff1a3e2271c219b29c4ab3a4e54411c22ed20c /sdext
parenta2dd79d14ee2e76e3b6c13f2880706292ea90c26 (diff)
Use SAL_N_ELEMENTS
Some more like Thorstens diff 9c59cd15b150638c845bbc275b9b04460afc23bd Done with some regex magic (and a check if this var is an array): s/sizeof\(\s*$var\s*\)\s*\/\s*sizeof\(\s*\*$var\s*/SAL_N_ELEMENTS\($var/gs
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/filterdet.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdext/source/pdfimport/filterdet.cxx b/sdext/source/pdfimport/filterdet.cxx
index 28fd12621ab3..969f378e03a0 100644
--- a/sdext/source/pdfimport/filterdet.cxx
+++ b/sdext/source/pdfimport/filterdet.cxx
@@ -139,8 +139,8 @@ namespace {
xPropSet->getPropertyValue(rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Label" ))) >>= aLabel;
const char pFileName[] = "%FILENAME";
aLabel = aLabel.replaceAt(
- aLabel.indexOfAsciiL(pFileName,sizeof(pFileName)/sizeof(*pFileName)-1),
- sizeof(pFileName)/sizeof(*pFileName)-1,
+ aLabel.indexOfAsciiL(pFileName,SAL_N_ELEMENTS(pFileName)-1),
+ SAL_N_ELEMENTS(pFileName)-1,
aFilename );
xPropSet->setPropertyValue(rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Label" )),
uno::makeAny(aLabel));