[Libreoffice-commits] core.git: sfx2/source

Stephan Bergmann sbergman at redhat.com
Thu May 11 09:15:05 UTC 2017


 sfx2/source/appl/shutdowniconw32.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e1da95ba4e71face32964b9b71441dfdfe803b41
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu May 11 11:14:27 2017 +0200

    Clean up uses of SAL_U/SAL_W: sfx2
    
    Change-Id: I91a7af532a3b94e8096d99d1c4cf63d315e2f446

diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx
index 4c80752aaad8..502b99f55b0d 100644
--- a/sfx2/source/appl/shutdowniconw32.cxx
+++ b/sfx2/source/appl/shutdowniconw32.cxx
@@ -121,7 +121,8 @@ static void addMenuItem( HMENU hMenu, UINT id, UINT iconId, const OUString& text
             mi.fType=MFT_STRING;
             mi.fState=MFS_ENABLED;
             mi.wID = id;
-            mi.dwTypeData = SAL_W(const_cast<sal_Unicode *>(text.getStr()));
+            mi.dwTypeData = reinterpret_cast<wchar_t *>(
+                const_cast<sal_Unicode *>(text.getStr()));
             mi.cch = text.getLength();
         }
 


More information about the Libreoffice-commits mailing list