summaryrefslogtreecommitdiff
path: root/sal/inc/rtl/ustring.h
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-08 10:30:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-08 10:30:09 +0000
commit38c2ceeee6016c04282ba3cce8608d4e9ce2a621 (patch)
treeea4264547ba96a56d0eb9cf10750deb61a11d202 /sal/inc/rtl/ustring.h
parent36e2296bf8fae3c66a66eada3595cbb2628a4833 (diff)
Use c++0x features to detect misuse of SAL_N_ELEMENTS and CONSTASCII
Diffstat (limited to 'sal/inc/rtl/ustring.h')
-rw-r--r--sal/inc/rtl/ustring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/inc/rtl/ustring.h b/sal/inc/rtl/ustring.h
index ad55be973e91..426a672db841 100644
--- a/sal/inc/rtl/ustring.h
+++ b/sal/inc/rtl/ustring.h
@@ -1449,7 +1449,7 @@ sal_Int32 SAL_CALL rtl_uString_getToken( rtl_uString ** newStr , rtl_uString * s
its value should be 0x00. Depending on where this macro is used, the nature
of the supplied expression might be further restricted.
*/
-#define RTL_CONSTASCII_USTRINGPARAM( constAsciiStr ) constAsciiStr, ((sal_Int32)(sizeof(constAsciiStr)-1)), RTL_TEXTENCODING_ASCII_US
+#define RTL_CONSTASCII_USTRINGPARAM( constAsciiStr ) constAsciiStr, ((sal_Int32)(SAL_N_ELEMENTS(constAsciiStr)-1)), RTL_TEXTENCODING_ASCII_US
/* ======================================================================= */