diff options
author | skswales <stuart.swales.croftnuisk@gmail.com> | 2016-06-21 17:59:01 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-06-22 12:31:42 +0000 |
commit | a50cdeb70ec19369f42ed08abfd4a5301d05edb5 (patch) | |
tree | 70081e60d642b507e572dbfdd4cf191f4608ec14 /shell/source/backends | |
parent | 547e4b3a80708600edbc3f5669b4428877b5a951 (diff) |
Work towards tdf#72606 EasyHack _tstring/TCHAR elimination
shell module largely already compiled UNICODE: A/W clarity
Verified by installing release build and trying property sheets etc.
Change-Id: I4965cdadbce635d86da1996c3c1bbd37a981ffde
Reviewed-on: https://gerrit.libreoffice.org/26556
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'shell/source/backends')
-rw-r--r-- | shell/source/backends/localebe/localebackend.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/source/backends/localebe/localebackend.cxx b/shell/source/backends/localebe/localebackend.cxx index 07729f0afa05..852d1dc9be7d 100644 --- a/shell/source/backends/localebe/localebackend.cxx +++ b/shell/source/backends/localebe/localebackend.cxx @@ -36,13 +36,13 @@ OUString ImplGetLocale(LCID lcid) { - TCHAR buffer[8]; - LPTSTR cp = buffer; + CHAR buffer[8]; + PSTR cp = buffer; - cp += GetLocaleInfo( lcid, LOCALE_SISO639LANGNAME , buffer, 4 ); + cp += GetLocaleInfoA( lcid, LOCALE_SISO639LANGNAME , buffer, 4 ); if( cp > buffer ) { - if( 0 < GetLocaleInfo( lcid, LOCALE_SISO3166CTRYNAME, cp, buffer + 8 - cp) ) + if( 0 < GetLocaleInfoA( lcid, LOCALE_SISO3166CTRYNAME, cp, buffer + 8 - cp) ) // #i50822# minus character must be written before cp *(cp - 1) = '-'; |