diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-16 10:30:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-16 10:58:04 +0000 |
commit | b0f254fa1e1cb916fa21234603578de701f75e83 (patch) | |
tree | 569d558f6975c795e8cf173111895a7c66176f2b | |
parent | 60c8a970d693617fabb3278828e15a0782174091 (diff) |
WaE: getXScreen is an unsigned int now
-rw-r--r-- | vcl/inc/unx/saldisp.hxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/app/saldisp.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/unx/saldisp.hxx b/vcl/inc/unx/saldisp.hxx index 984726d91101..ea7dfa71d367 100644 --- a/vcl/inc/unx/saldisp.hxx +++ b/vcl/inc/unx/saldisp.hxx @@ -375,7 +375,7 @@ public: virtual ScreenData *initScreen( SalX11Screen nXScreen ) const; const ScreenData& getDataForScreen( SalX11Screen nXScreen ) const { - if( nXScreen.getXScreen() >= static_cast<int>(m_aScreens.size()) ) + if( nXScreen.getXScreen() >= static_cast<unsigned int>(m_aScreens.size()) ) return m_aInvalidScreenData; if( ! m_aScreens[nXScreen.getXScreen()].m_bInit ) initScreen( nXScreen ); diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index c3d5f7981d7f..f361961691c3 100644 --- a/vcl/unx/generic/app/saldisp.cxx +++ b/vcl/unx/generic/app/saldisp.cxx @@ -525,7 +525,7 @@ void SalX11Display::PostUserEvent() SalDisplay::ScreenData * SalDisplay::initScreen( SalX11Screen nXScreen ) const { - if( nXScreen.getXScreen() >= static_cast<int>(m_aScreens.size()) ) + if( nXScreen.getXScreen() >= static_cast<unsigned int>(m_aScreens.size()) ) nXScreen = m_nXDefaultScreen; ScreenData* pSD = const_cast<ScreenData *>(&m_aScreens[nXScreen.getXScreen()]); if( pSD->m_bInit ) |