diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-04-27 07:02:07 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-04-27 06:53:27 +0200 |
commit | ab5fbd39b76be8cc8015d303c1677c198776390a (patch) | |
tree | 017d33970083a61020b8e9f06992cbbd0f034651 /emfio/source | |
parent | a2f51948374a8d13e25c7fc9a5caebf29099328d (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.cxx | 2 |
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 ); |