mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 14:49:19 +02:00
reformat: remove redundant 'else' keyword
This commit is contained in:
@@ -348,14 +348,12 @@ std::string TSpeedPos::GetName() const
|
||||
{
|
||||
if( iFlags & spTrack ) // jeśli tor
|
||||
return trTrack->name();
|
||||
else if( iFlags & spEvent ) // jeśli event
|
||||
return
|
||||
evEvent->m_name
|
||||
+ " [" + std::to_string( static_cast<int>( evEvent->input_value( 1 ) ) )
|
||||
+ ", " + std::to_string( static_cast<int>( evEvent->input_value( 2 ) ) )
|
||||
+ "]";
|
||||
else
|
||||
return "";
|
||||
{
|
||||
if (iFlags & spEvent) // jeśli event
|
||||
return evEvent->m_name + " [" + std::to_string(static_cast<int>(evEvent->input_value(1))) + ", " + std::to_string(static_cast<int>(evEvent->input_value(2))) + "]";
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
std::string TSpeedPos::TableText() const
|
||||
|
||||
Reference in New Issue
Block a user