diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-05-12 07:31:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-05-12 09:23:36 +0200 |
commit | ad48b2b02f83eed41fb1eb8d16de7e804156fcf1 (patch) | |
tree | 8238213135d3efe1f8b2cb6fdb9c5a79939f106c /i18npool/source | |
parent | de16265f55ff2e4e1beb574fcb5b7b894df234f9 (diff) |
Optimized OString operator += overloads
...similar to how OUString got an operator += overload for std::u16string_view
with c927aab29ebfff1ce3ac0b2f27ae343025a9890c "Make the OUString ctors taking
raw sal_Unicode pointer/non-const array explicit". In this case, though, we can
easily add enough overloads (which forward to the one taking std::string_view)
to avoid any ambiguities at call sites.
We had left this out in the past as there is no suitable rtl_string_newConcat*
function to use in the implementation, but we already had inline implementations
of OStringConcat/OStringNumber overloads, so stick to that pattern here with the
new std::string_view overload.
Change-Id: I329036ea2b62cb921b4dbc1eef7c45a9cdb56e13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115452
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18npool/source')
0 files changed, 0 insertions, 0 deletions