diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-02 16:06:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-03 12:18:15 +0200 |
commit | 5afdcad4c0e7850b18996c549892b9360cd8973f (patch) | |
tree | 53bd3997d044fdf869ae4643855eef722682983e /vcl/source/app/svdata.cxx | |
parent | 39d364958447cd33a6e30dc9d2904ad94fd40aba (diff) |
Pass context and resource string down to boost::locale separately
because this is often on a hot path, and we can avoid the splitting and
joining of strings like this.
Change-Id: I2a24a123a64b762fd0741c45eaca3ad4bdd5580d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119884
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/app/svdata.cxx')
-rw-r--r-- | vcl/source/app/svdata.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx index 8b4e5fc1662a..147d010bdd08 100644 --- a/vcl/source/app/svdata.cxx +++ b/vcl/source/app/svdata.cxx @@ -256,7 +256,7 @@ const std::locale& ImplGetResLocale() return pSVData->maResLocale; } -OUString VclResId(std::string_view aId) +OUString VclResId(TranslateId aId) { return Translate::get(aId, ImplGetResLocale()); } |