diff options
author | rubidium <rubidium@openttd.org> | 2009-10-19 09:15:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-19 09:15:47 +0000 |
commit | 08ac51fada56ee84a98ced07c2ec9a1b16bd8692 (patch) | |
tree | 7975e0cae230445acefafd170adcc975dd2f6c42 /src/station_gui.cpp | |
parent | 2cca30d2e308ca63eacdfcc9d45920c4b2f2a37c (diff) | |
download | openttd-08ac51fada56ee84a98ced07c2ec9a1b16bd8692.tar.xz |
(svn r17813) -Codechange: unify the CargoPacket related coding style
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index a02385984..1822c92b3 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -825,7 +825,7 @@ struct StationViewWindow : public Window { /* Add an entry for each distinct cargo source. */ const StationCargoList::List *packets = st->goods[i].cargo.Packets(); - for (StationCargoList::List::const_iterator it = packets->begin(); it != packets->end(); it++) { + for (StationCargoList::ConstIterator it(packets->begin()); it != packets->end(); it++) { const CargoPacket *cp = *it; if (cp->SourceStation() != station_id) { bool added = false; @@ -837,7 +837,7 @@ struct StationViewWindow : public Window { if (!HasBit(this->cargo, i)) break; /* Check if we already have this source in the list */ - for (CargoDataList::iterator jt = cargolist.begin(); jt != cargolist.end(); jt++) { + for (CargoDataList::iterator jt(cargolist.begin()); jt != cargolist.end(); jt++) { CargoData *cd = &(*jt); if (cd->cargo == i && cd->source == cp->SourceStation()) { cd->count += cp->Count(); |