From 084a2c52c27a095bf32815512340b485c5b05eaf Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 3 Dec 2012 14:54:39 +0100 Subject: make sure fast string operator+ is used only by LO code Change-Id: Iaa8fc379e4d032931c0f60a3e3525783d8d28964 --- sal/inc/rtl/stringutils.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sal/inc') 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 -- cgit