Casting an rvalue to nonconst reference is illegal. I'm not positive why these are considered to be rvalues when they are cast.
This commit is contained in:
@@ -406,7 +406,11 @@ void ScreenTextEntryVisual::MoveY( int iDir )
|
||||
do
|
||||
{
|
||||
m_iFocusY = enum_add2( m_iFocusY, +iDir );
|
||||
wrap( (int&)m_iFocusY, NUM_KeyboardRow );
|
||||
{
|
||||
int temp = m_iFocusY;
|
||||
wrap( temp, NUM_KeyboardRow );
|
||||
m_iFocusY = KeyboardRow( temp );
|
||||
}
|
||||
|
||||
// HACK: Round to nearest option so that we always stop
|
||||
// on KEYBOARD_ROW_SPECIAL.
|
||||
|
||||
Reference in New Issue
Block a user