From bf35c2b7f4b9fa18e387e2ee8df518303696e13c Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Mon, 13 Jun 2022 03:53:54 +0200 Subject: 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 --- include/rtl/ustrbuf.hxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/rtl/ustrbuf.hxx') 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 #include +#include #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 + OUStringBuffer& operator<<(T&& rValue) + { + return append(std::forward(rValue)); + } +#endif + /** Inserts the string into this string buffer. -- cgit