summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-03 14:54:39 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-12-03 18:04:24 +0100
commit084a2c52c27a095bf32815512340b485c5b05eaf (patch)
tree3f55ca2cf9044869d394010747058435b79cf89e /sal
parentce90f99a2d66c2b998ad3f9f028e2ea623a757f5 (diff)
make sure fast string operator+ is used only by LO code
Change-Id: Iaa8fc379e4d032931c0f60a3e3525783d8d28964
Diffstat (limited to 'sal')
-rw-r--r--sal/inc/rtl/stringutils.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sal/inc/rtl/stringutils.hxx b/sal/inc/rtl/stringutils.hxx
index f0ad4f8765bb..b1e19e5327b1 100644
--- a/sal/inc/rtl/stringutils.hxx
+++ b/sal/inc/rtl/stringutils.hxx
@@ -35,11 +35,13 @@
// (e.g. for debugging).
#ifndef RTL_DISABLE_FAST_STRING
#ifndef HAVE_SFINAE_ANONYMOUS_BROKEN
-// Enable fast string concatenation.
// This feature is not part of public API and is meant to be used only internally by LibreOffice.
+#ifdef LIBO_INTERNAL_ONLY
+// Enable fast string concatenation.
#define RTL_FAST_STRING
#endif
#endif
+#endif
// The unittest uses slightly different code to help check that the proper
// calls are made. The class is put into a different namespace to make