summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-04-27 07:02:07 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2020-04-27 06:53:27 +0200
commitab5fbd39b76be8cc8015d303c1677c198776390a (patch)
tree017d33970083a61020b8e9f06992cbbd0f034651 /writerfilter
parenta2f51948374a8d13e25c7fc9a5caebf29099328d (diff)
Don't convert OUString to char*
Change-Id: I3bfcc6fedb782b12be1fb1d42981756287f29f82 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92956 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/rtftok/rtfdispatchvalue.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/writerfilter/source/rtftok/rtfdispatchvalue.cxx b/writerfilter/source/rtftok/rtfdispatchvalue.cxx
index 990bfad976ae..e847e58f0797 100644
--- a/writerfilter/source/rtftok/rtfdispatchvalue.cxx
+++ b/writerfilter/source/rtftok/rtfdispatchvalue.cxx
@@ -841,9 +841,8 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
case RTF_CPG:
{
rtl_TextEncoding nEncoding
- = (nParam == 0)
- ? utl_getWinTextEncodingFromLangStr(getLODefaultLanguage().toUtf8().getStr())
- : rtl_getTextEncodingFromWindowsCodePage(nParam);
+ = (nParam == 0) ? utl_getWinTextEncodingFromLangStr(getLODefaultLanguage())
+ : rtl_getTextEncodingFromWindowsCodePage(nParam);
if (nKeyword == RTF_ANSICPG)
m_aDefaultState.setCurrentEncoding(nEncoding);
else