mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 18:09:18 +02:00
Do not allow implicit cast for inline std::string to_string(bool Value) and change to_string to std::string for non boolean values
This commit is contained in:
@@ -353,8 +353,8 @@ std::string TSpeedPos::GetName() const
|
||||
else if( iFlags & spEvent ) // jeśli event
|
||||
return
|
||||
evEvent->m_name
|
||||
+ " [" + to_string( static_cast<int>( evEvent->input_value( 1 ) ) )
|
||||
+ ", " + to_string( static_cast<int>( evEvent->input_value( 2 ) ) )
|
||||
+ " [" + std::to_string( static_cast<int>( evEvent->input_value( 1 ) ) )
|
||||
+ ", " + std::to_string( static_cast<int>( evEvent->input_value( 2 ) ) )
|
||||
+ "]";
|
||||
else
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user