(svn r17321) -Codechange: minor coding style fixes for the town directory
This commit is contained in:
@@ -562,7 +562,7 @@ private:
|
|||||||
SetVScrollCount(this, this->towns.Length()); // Update scrollbar as well.
|
SetVScrollCount(this, this->towns.Length()); // Update scrollbar as well.
|
||||||
}
|
}
|
||||||
/* Always sort the towns. */
|
/* Always sort the towns. */
|
||||||
last_town = NULL;
|
this->last_town = NULL;
|
||||||
this->towns.Sort();
|
this->towns.Sort();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -599,7 +599,7 @@ public:
|
|||||||
TownDirectoryWindow(const WindowDesc *desc) : Window()
|
TownDirectoryWindow(const WindowDesc *desc) : Window()
|
||||||
{
|
{
|
||||||
this->towns.SetListing(this->last_sorting);
|
this->towns.SetListing(this->last_sorting);
|
||||||
this->towns.SetSortFuncs(this->sorter_funcs);
|
this->towns.SetSortFuncs(TownDirectoryWindow::sorter_funcs);
|
||||||
this->towns.ForceRebuild();
|
this->towns.ForceRebuild();
|
||||||
this->BuildSortTownList();
|
this->BuildSortTownList();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user