mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 06:39:18 +02:00
maintenance: fixes for some of cppcheck warnings
This commit is contained in:
@@ -41,13 +41,8 @@ dictionary_source::dictionary_source( std::string const &Input ) {
|
||||
vehicle == nullptr ? nullptr :
|
||||
vehicle->ctOwner == nullptr ? vehicle->Mechanik :
|
||||
vehicle->ctOwner ) };
|
||||
auto const *timetable { (
|
||||
controller != nullptr ?
|
||||
controller->TrainTimetable() :
|
||||
nullptr ) };
|
||||
|
||||
if( timetable != nullptr ) {
|
||||
timetable->serialize( this );
|
||||
if( controller != nullptr ) {
|
||||
controller->TrainTimetable().serialize( this );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user