Kaydet (Commit) 77090e4e authored tarafından David Tardon's avatar David Tardon

remove superfluous casts

üst 3acbdb2d
...@@ -1438,8 +1438,7 @@ void ValueSet::KeyInput( const KeyEvent& rKEvt ) ...@@ -1438,8 +1438,7 @@ void ValueSet::KeyInput( const KeyEvent& rKEvt )
else if ( nCalcPos >= mnCols ) // we can go up else if ( nCalcPos >= mnCols ) // we can go up
{ {
if ( nCalcPos >= ( nLineCount * mnCols ) ) if ( nCalcPos >= ( nLineCount * mnCols ) )
nItemPos = sal::static_int_cast< sal_uInt16 >( nItemPos = nCalcPos - ( nLineCount * mnCols );
nCalcPos - ( nLineCount * mnCols ));
else else
// Go to the first line. This can only happen for KEY_PAGEUP // Go to the first line. This can only happen for KEY_PAGEUP
nItemPos = nCalcPos % mnCols; nItemPos = nCalcPos % mnCols;
...@@ -1482,8 +1481,7 @@ void ValueSet::KeyInput( const KeyEvent& rKEvt ) ...@@ -1482,8 +1481,7 @@ void ValueSet::KeyInput( const KeyEvent& rKEvt )
else if ( nCalcPos + mnCols <= nLastItem ) // we can go down else if ( nCalcPos + mnCols <= nLastItem ) // we can go down
{ {
if ( nCalcPos + ( nLineCount * mnCols ) <= nLastItem ) if ( nCalcPos + ( nLineCount * mnCols ) <= nLastItem )
nItemPos = sal::static_int_cast< sal_uInt16 >( nItemPos = nCalcPos + ( nLineCount * mnCols );
nCalcPos + ( nLineCount * mnCols ));
else else
// Go to the last line. This can only happen for KEY_PAGEDOWN // Go to the last line. This can only happen for KEY_PAGEDOWN
nItemPos = lcl_gotoLastLine(nLastItem, mnCols, nCalcPos); nItemPos = lcl_gotoLastLine(nLastItem, mnCols, nCalcPos);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment