summaryrefslogtreecommitdiff
path: root/include/rtl/stringconcat.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/rtl/stringconcat.hxx')
-rw-r--r--include/rtl/stringconcat.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/rtl/stringconcat.hxx b/include/rtl/stringconcat.hxx
index a74dd77ad78c..7ef9e1104094 100644
--- a/include/rtl/stringconcat.hxx
+++ b/include/rtl/stringconcat.hxx
@@ -141,6 +141,19 @@ struct ToStringHelper< const char[ N ] >
static const bool allowOUStringConcat = true;
};
+#if defined LIBO_INTERNAL_ONLY
+template<char C> struct ToStringHelper<OUStringLiteral1_<C>> {
+ static int length(OUStringLiteral1_<C>) { return 1; }
+ static char * addData(char * buffer, OUStringLiteral1_<C> literal)
+ { return addDataHelper(buffer, &literal.c, 1); }
+ static sal_Unicode * addData(
+ sal_Unicode * buffer, OUStringLiteral1_<C> literal)
+ { return addDataLiteral(buffer, &literal.c, 1); }
+ static bool const allowOStringConcat = false;
+ static bool const allowOUStringConcat = true;
+};
+#endif
+
/**
@internal