Remove expression with no effects from CalculatorManager (#337)
This commit is contained in:
parent
251ffffc50
commit
426a6c058d
@ -308,7 +308,10 @@ namespace CalculationManager
|
|||||||
unsigned char CalculatorManager::MapCommandForSerialize(Command command)
|
unsigned char CalculatorManager::MapCommandForSerialize(Command command)
|
||||||
{
|
{
|
||||||
unsigned int commandToSave = static_cast<unsigned int>(command);
|
unsigned int commandToSave = static_cast<unsigned int>(command);
|
||||||
commandToSave > UCHAR_MAX ? commandToSave -= UCHAR_MAX : commandToSave;
|
if (commandToSave > UCHAR_MAX)
|
||||||
|
{
|
||||||
|
commandToSave -= UCHAR_MAX;
|
||||||
|
}
|
||||||
return static_cast<unsigned char>(commandToSave);
|
return static_cast<unsigned char>(commandToSave);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user