[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - vcl/win

Tor Lillqvist tml at collabora.com
Tue Jul 8 02:55:28 PDT 2014


 vcl/win/source/window/salframe.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cdce546b9746de0f42df8e8dad86008ff13c74e0
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Jul 8 10:17:48 2014 +0300

    Fix some OUString construction error with VS2013
    
    A bit unclear to me whether the code really did what was intended with
    earlier VS versions either.
    
    VS2013 said: error C2664: 'rtl::OUString::OUString(const sal_uInt32
    *,sal_Int32)' : cannot convert argument 1 from 'const char *' to
    'const rtl::OUString &'
    
    Reason: cannot convert from 'const char *' to 'const rtl::OUString'
    
    No constructor could take the source type, or constructor overload
    resolution was ambiguous
    
    Change-Id: Ie23d8382515064062a3ed46418d9d4a977b35d28
    (cherry picked from commit eee44c951c104da342d55fd4de634efd51ae59ae)
    Reviewed-on: https://gerrit.libreoffice.org/10133
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 9cd8fa2..e2620aa 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -4441,7 +4441,7 @@ static int ImplMenuChar( HWND, WPARAM wParam, LPARAM lParam )
 {
     int nRet = MNC_IGNORE;
     HMENU hMenu = (HMENU) lParam;
-    OUString aMnemonic( "&" + (sal_Unicode) LOWORD(wParam) );
+    OUString aMnemonic( "&" + OUString((sal_Unicode) LOWORD(wParam)) );
     aMnemonic = aMnemonic.toAsciiLowerCase();   // we only have ascii mnemonics
 
     // search the mnemonic in the current menu


More information about the Libreoffice-commits mailing list