diff options
author | David Tardon <dtardon@redhat.com> | 2012-03-08 06:36:42 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-12 08:53:26 +0100 |
commit | 9adb48b9a1be832e83ac1570fcf49e4a91a6d406 (patch) | |
tree | 407a5bc155974265d0a07a8ec8ce2e005418d11e /vcl | |
parent | 13718ea30c11968d8d5436ff24ddc6d9f2b64d05 (diff) |
WaE: enumeral mismatch in conditional expression
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/source/gdi/salnativewidgets-luna.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<int>(TRS_NORMAL) : static_cast<int>(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<int>(TUS_NORMAL) : static_cast<int>(TUVS_NORMAL); Rectangle aThumbRect = ImplGetThemeRect( hTheme, hDC, iPart, iState, Rectangle() ); if( nPart == PART_THUMB_HORZ ) { |