diff options
author | David Tardon <dtardon@redhat.com> | 2011-11-01 10:10:03 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-11-01 10:12:07 +0100 |
commit | 77090e4e2515aefe547618487cdc96fde567e595 (patch) | |
tree | 7ffe0232dbe63904878386a7d8c5eed81fe914ec /svtools | |
parent | 3acbdb2dee458cba6904a636733f1777b47e9fc1 (diff) |
remove superfluous casts
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueset.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index a3d38f03eca4..1a75dd2a4492 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -1438,8 +1438,7 @@ void ValueSet::KeyInput( const KeyEvent& rKEvt ) else if ( nCalcPos >= mnCols ) // we can go up { if ( nCalcPos >= ( nLineCount * mnCols ) ) - nItemPos = sal::static_int_cast< sal_uInt16 >( - nCalcPos - ( nLineCount * mnCols )); + nItemPos = nCalcPos - ( nLineCount * mnCols ); else // Go to the first line. This can only happen for KEY_PAGEUP nItemPos = nCalcPos % mnCols; @@ -1482,8 +1481,7 @@ void ValueSet::KeyInput( const KeyEvent& rKEvt ) else if ( nCalcPos + mnCols <= nLastItem ) // we can go down { if ( nCalcPos + ( nLineCount * mnCols ) <= nLastItem ) - nItemPos = sal::static_int_cast< sal_uInt16 >( - nCalcPos + ( nLineCount * mnCols )); + nItemPos = nCalcPos + ( nLineCount * mnCols ); else // Go to the last line. This can only happen for KEY_PAGEDOWN nItemPos = lcl_gotoLastLine(nLastItem, mnCols, nCalcPos); |