summaryrefslogtreecommitdiff
path: root/lingucomponent/source/numbertext/numbertext.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-04-22 10:28:20 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2023-04-22 12:46:01 +0200
commit0f6ec3939df6b0e3263fc07a2067bbbfc6421ac7 (patch)
tree42d99d08f48fd06da9c0ee89bb6e4ab264ba03bf /lingucomponent/source/numbertext/numbertext.cxx
parentab55c7bffddc1a4c8f3d971d24bae297a15f3346 (diff)
Introduce o3tl::toU converting wstring_view to u16string_view
Change-Id: I5be9aa767020c2516984e47fcd0f51d4661fdf17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150779 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'lingucomponent/source/numbertext/numbertext.cxx')
-rw-r--r--lingucomponent/source/numbertext/numbertext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lingucomponent/source/numbertext/numbertext.cxx b/lingucomponent/source/numbertext/numbertext.cxx
index 4f868adb74d8..aec03e1f5e8e 100644
--- a/lingucomponent/source/numbertext/numbertext.cxx
+++ b/lingucomponent/source/numbertext/numbertext.cxx
@@ -128,7 +128,7 @@ OUString SAL_CALL NumberText_Impl::getNumberText(const OUString& rText, const Lo
bool result = m_aNumberText.numbertext(sResult, aLangCode.getStr());
DBG_ASSERT(result, "numbertext: false");
#if defined(_WIN32)
- OUString aResult(o3tl::toU(sResult.c_str()));
+ OUString aResult(o3tl::toU(sResult));
#else
OUString aResult = OUString::fromUtf8(Numbertext::wstring2string(sResult));
#endif