From 9adb48b9a1be832e83ac1570fcf49e4a91a6d406 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 8 Mar 2012 06:36:42 +0100 Subject: WaE: enumeral mismatch in conditional expression --- vcl/win/source/gdi/salnativewidgets-luna.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/win/source/gdi/salnativewidgets-luna.cxx b/vcl/win/source/gdi/salnativewidgets-luna.cxx index 36b345ac92ac..2bc2f4b7b323 100644 --- a/vcl/win/source/gdi/salnativewidgets-luna.cxx +++ b/vcl/win/source/gdi/salnativewidgets-luna.cxx @@ -926,7 +926,7 @@ sal_Bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc, if( nType == CTRL_SLIDER ) { iPart = (nPart == PART_TRACK_HORZ_AREA) ? TKP_TRACK : TKP_TRACKVERT; - iState = (nPart == PART_TRACK_HORZ_AREA) ? TRS_NORMAL : TRVS_NORMAL; + iState = (nPart == PART_TRACK_HORZ_AREA) ? static_cast(TRS_NORMAL) : static_cast(TRVS_NORMAL); Rectangle aTrackRect = ImplGetThemeRect( hTheme, hDC, iPart, iState, Rectangle() ); RECT aTRect = rc; @@ -1333,7 +1333,7 @@ sal_Bool WinSalGraphics::getNativeControlRegion( ControlType nType, if( hTheme ) { int iPart = (nPart == PART_THUMB_HORZ) ? TKP_THUMB : TKP_THUMBVERT; - int iState = (nPart == PART_THUMB_HORZ) ? TUS_NORMAL : TUVS_NORMAL; + int iState = (nPart == PART_THUMB_HORZ) ? static_cast(TUS_NORMAL) : static_cast(TUVS_NORMAL); Rectangle aThumbRect = ImplGetThemeRect( hTheme, hDC, iPart, iState, Rectangle() ); if( nPart == PART_THUMB_HORZ ) { -- cgit