summaryrefslogtreecommitdiff
path: root/src/story_gui.cpp
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-21 22:45:44 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commit9cba6f71936207f11ad0d4ed752d82966087fab9 (patch)
treed36afb33bb2e40118ed7fd7dc5c68fb70e5373f3 /src/story_gui.cpp
parentbfd79e59dc34314a089a0024af56d04d84456ebd (diff)
downloadopenttd-9cba6f71936207f11ad0d4ed752d82966087fab9.tar.xz
Codechange: Replaced SmallVector::Compact() with std::vector::shrink_to_fit()
Diffstat (limited to 'src/story_gui.cpp')
-rw-r--r--src/story_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/story_gui.cpp b/src/story_gui.cpp
index 0ccfe2b63..efb3f36e7 100644
--- a/src/story_gui.cpp
+++ b/src/story_gui.cpp
@@ -61,7 +61,7 @@ protected:
}
}
- this->story_pages.Compact();
+ this->story_pages.shrink_to_fit();
this->story_pages.RebuildDone();
}
@@ -90,7 +90,7 @@ protected:
}
}
- this->story_page_elements.Compact();
+ this->story_page_elements.shrink_to_fit();
this->story_page_elements.RebuildDone();
}