diff options
author | David Tardon <dtardon@redhat.com> | 2012-01-16 12:43:31 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-01-16 12:49:50 +0100 |
commit | aad000dcef7b5c9a6fe4bad6abd4245e357b850f (patch) | |
tree | 462583e55a8822d195480324994bfd2531ae0234 | |
parent | 9847c3ec4dc276f52fd06b59dd8101506fe84cd9 (diff) |
drop unneeded cast
-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 ea7dfa71d367..23d54bd39fa1 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<unsigned int>(m_aScreens.size()) ) + if( nXScreen.getXScreen() >= 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 f361961691c3..a8eac644d29e 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<unsigned int>(m_aScreens.size()) ) + if( nXScreen.getXScreen() >= m_aScreens.size() ) nXScreen = m_nXDefaultScreen; ScreenData* pSD = const_cast<ScreenData *>(&m_aScreens[nXScreen.getXScreen()]); if( pSD->m_bInit ) |