diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-05-27 11:14:32 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-05-27 12:43:42 +0200 |
commit | 1f91efaea987c78c2755ea5d02eb3b1cb50743bd (patch) | |
tree | 95a1a2737df3b003b384c21d5e7c2bc8aa0686fc /include/rtl/stringconcat.hxx | |
parent | 42df2445f3bc34cf006f9b4433671e21a179ff5c (diff) |
Unify Concat2View
Change-Id: Idb0a0fc620ece33e7ed6bcec3cbd8a0a833b1e38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152314
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/rtl/stringconcat.hxx')
-rw-r--r-- | include/rtl/stringconcat.hxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/rtl/stringconcat.hxx b/include/rtl/stringconcat.hxx index fd9a6f7a938a..0bed28ac810c 100644 --- a/include/rtl/stringconcat.hxx +++ b/include/rtl/stringconcat.hxx @@ -312,14 +312,9 @@ private: std::unique_ptr<C[]> buffer_; }; -template <typename T1, typename T2> auto Concat2View(OStringConcat<T1, T2> const& c) +template <typename C, typename T1, typename T2> auto Concat2View(StringConcat<C, T1, T2> const& c) { - return StringConcatenation<char>(c); -} - -template <typename T1, typename T2> auto Concat2View(OUStringConcat<T1, T2> const& c) -{ - return StringConcatenation<char16_t>(c); + return StringConcatenation<C>(c); } /** |