mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 05:49:19 +02:00
reformat: use auto on certain types
This commit is contained in:
@@ -1279,7 +1279,7 @@ void TTrack::get_map_future_paths(map_colored_paths &handles) {
|
||||
|
||||
float distance = Global.map_highlight_distance;
|
||||
TTrack *track = trPrev;
|
||||
TTrack *visitor = this;
|
||||
auto visitor = this;
|
||||
|
||||
while (distance > 0.0f && track && track->iterate_stamp != stamp) {
|
||||
handles.future.push_back(track->extra_map_geometry);
|
||||
|
||||
@@ -138,7 +138,7 @@ TTraction::Load( cParser *parser, glm::dvec3 const &pOrigin ) {
|
||||
>> WireOffset;
|
||||
m_visible = parser->getToken<std::string>() == "vis";
|
||||
|
||||
std::string token { parser->getToken<std::string>() };
|
||||
auto token { parser->getToken<std::string>() };
|
||||
if( token == "parallel" ) {
|
||||
// jawne wskazanie innego przęsła, na które może przestawić się pantograf
|
||||
parser->getTokens();
|
||||
|
||||
@@ -46,7 +46,7 @@ bool TTractionPowerSource::Load(cParser *parser) {
|
||||
>> FastFuseRepetition
|
||||
>> SlowFuseTimeOut;
|
||||
|
||||
std::string token { parser->getToken<std::string>() };
|
||||
auto token { parser->getToken<std::string>() };
|
||||
if( token == "recuperation" ) {
|
||||
Recuperation = true;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Mtable
|
||||
{
|
||||
|
||||
static int const MaxTTableSize = 100; // można by to robić dynamicznie
|
||||
static char const *hrsd = ".";
|
||||
static auto hrsd = ".";
|
||||
|
||||
// Ra: pozycja zerowa rozkładu chyba nie ma sensu
|
||||
// Ra: numeracja przystanków jest 1..StationCount
|
||||
|
||||
Reference in New Issue
Block a user