summaryrefslogtreecommitdiff
path: root/include/rtl/ustrbuf.hxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2022-06-13 03:53:54 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2022-06-21 13:39:40 +0200
commitbf35c2b7f4b9fa18e387e2ee8df518303696e13c (patch)
tree08aa36548e4b9c9982998c3edd9d0235d71d26f9 /include/rtl/ustrbuf.hxx
parent909cdd552199d35f7c10be0a8be370158aea0815 (diff)
OUStringBuffer: add append via operator<<(T&&)
... and use it to implement SalFrame::DumpSetPosSize. Change-Id: I82301f7e1f6641d6167c9577ce9ef44ef8067297 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135808 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'include/rtl/ustrbuf.hxx')
-rw-r--r--include/rtl/ustrbuf.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/rtl/ustrbuf.hxx b/include/rtl/ustrbuf.hxx
index 8c8cc54f8f01..605fb1efb6d0 100644
--- a/include/rtl/ustrbuf.hxx
+++ b/include/rtl/ustrbuf.hxx
@@ -34,6 +34,7 @@
#if defined LIBO_INTERNAL_ONLY
#include <string_view>
#include <type_traits>
+#include <utility>
#endif
#include "rtl/ustrbuf.h"
@@ -974,6 +975,20 @@ public:
return pData->buffer + n;
}
+#if defined LIBO_INTERNAL_ONLY
+ /**
+ "Stream" operator to append a value to this OUStringBuffer.
+
+ @internal
+ @since LibreOffice 7.5
+ */
+ template<typename T>
+ OUStringBuffer& operator<<(T&& rValue)
+ {
+ return append(std::forward<T>(rValue));
+ }
+#endif
+
/**
Inserts the string into this string buffer.