summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-14 20:59:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-14 21:15:37 +0000
commit90c5efa566bfab44b07ff67bc7c821b6ed5db625 (patch)
tree32d1c9c1e3b275aad12e57f75467fe2477a45c48 /tools
parentcf97810cb69cf8e9c46cebc61298c08e62674da4 (diff)
Make it harder to use the wrong constructor and pass strlen and encoding
i.e compile-time detect use of RTL_CONSTASCII_STRINGPARAM instead of RTL_CONSTASCII_USTRINGPARAM
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/string.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx
index 5b8c2b5573b1..ad2afc842b6b 100644
--- a/tools/inc/tools/string.hxx
+++ b/tools/inc/tools/string.hxx
@@ -474,6 +474,8 @@ private:
void operator +=(int); // not implemented; to detect misuses
// of operator +=(sal_Unicode)
+ //detect and reject use of RTL_CONSTASCII_STRINGPARAM instead of RTL_CONSTASCII_USTRINGPARAM
+ TOOLS_DLLPRIVATE UniString( const sal_Char*, sal_Int32 );
public:
UniString();
UniString( const ResId& rResId );