summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2019-03-03 17:30:09 +0000
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commitc01a2e2a81d8e7bcd47d46292ed0b7d452081c31 (patch)
treeb38441ec8469136a6a2252f8c856d22f14ee689e /src/window.cpp
parent6570f7989f5c1fc5a1276505a8e6efce7838efd9 (diff)
downloadopenttd-c01a2e2a81d8e7bcd47d46292ed0b7d452081c31.tar.xz
Codechange: Removed SmallVector completely
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 9366b92eb..891eafb5e 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -85,7 +85,7 @@ SpecialMouseMode _special_mouse_mode; ///< Mode of the mouse.
* List of all WindowDescs.
* This is a pointer to ensure initialisation order with the various static WindowDesc instances.
*/
-static SmallVector<WindowDesc*, 16> *_window_descs = NULL;
+static std::vector<WindowDesc*> *_window_descs = NULL;
/** Config file to store WindowDesc */
char *_windows_file;
@@ -108,7 +108,7 @@ WindowDesc::WindowDesc(WindowPosition def_pos, const char *ini_key, int16 def_wi
default_width_trad(def_width_trad),
default_height_trad(def_height_trad)
{
- if (_window_descs == NULL) _window_descs = new SmallVector<WindowDesc*, 16>();
+ if (_window_descs == NULL) _window_descs = new std::vector<WindowDesc*>();
_window_descs->push_back(this);
}