summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/unotools/wincodepage.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/unotools/wincodepage.hxx b/include/unotools/wincodepage.hxx
index f3a6aee97ad3..4ec808e5c90f 100644
--- a/include/unotools/wincodepage.hxx
+++ b/include/unotools/wincodepage.hxx
@@ -12,11 +12,12 @@
#include <unotools/unotoolsdllapi.h>
#include <rtl/textenc.h>
+#include <rtl/ustring.hxx>
/** Map from an ISO-639 language code (and optionally ISO-3166 country/region code)
to a text encoding of corresponding Windows ANSI or OEM codepage.
-@param pLanguage
+@param sLanguage
Any language-country string. Must not be null.
@param bOEM
@@ -28,7 +29,7 @@ If no mapping is found, RTL_TEXTENCODING_IBM_850 is returned when bOEM is true,
RTL_TEXTENCODING_MS_1252 otherwise.
*/
UNOTOOLS_DLLPUBLIC rtl_TextEncoding utl_getWinTextEncodingFromLangStr(
- const char* pLanguage, bool bOEM = false);
+ const OUString& sLanguage, bool bOEM = false);
#endif // INCLUDED_UNOTOOLS_WINCODEPAGE_HXX