From ab5fbd39b76be8cc8015d303c1677c198776390a Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 27 Apr 2020 07:02:07 +0300 Subject: 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 --- emfio/source/reader/mtftools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emfio/source/reader/mtftools.cxx') 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 ); -- cgit v1.2.3