summaryrefslogtreecommitdiff
path: root/emfio/source
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 /emfio/source
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 'emfio/source')
-rw-r--r--emfio/source/reader/mtftools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx
index cc2fddcf4796..01c091be598c 100644
--- a/emfio/source/reader/mtftools.cxx
+++ b/emfio/source/reader/mtftools.cxx
@@ -185,7 +185,7 @@ namespace emfio
|| (rFont.alfFaceName == "MT Extra"))
eCharSet = RTL_TEXTENCODING_SYMBOL;
else if ((rFont.lfCharSet == DEFAULT_CHARSET) || (rFont.lfCharSet == OEM_CHARSET))
- eCharSet = utl_getWinTextEncodingFromLangStr(getLODefaultLanguage().toUtf8().getStr(),
+ eCharSet = utl_getWinTextEncodingFromLangStr(getLODefaultLanguage(),
rFont.lfCharSet == OEM_CHARSET);
else
eCharSet = rtl_getTextEncodingFromWindowsCharset( rFont.lfCharSet );