summaryrefslogtreecommitdiff
path: root/src/core/smallvec_type.hpp
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2019-03-04 20:49:33 +0000
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commitcc62f4163f230ed82ef3b04187987d3e380cd570 (patch)
treec4e271f72ae231d9934f215624054d605665ca6c /src/core/smallvec_type.hpp
parentc01a2e2a81d8e7bcd47d46292ed0b7d452081c31 (diff)
downloadopenttd-cc62f4163f230ed82ef3b04187987d3e380cd570.tar.xz
Cleanup: Remove unused size template parameters from SmallMap and Auto[Free|Delete]SmallVector
Diffstat (limited to 'src/core/smallvec_type.hpp')
-rw-r--r--src/core/smallvec_type.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/smallvec_type.hpp b/src/core/smallvec_type.hpp
index 19dab2228..e71edf89f 100644
--- a/src/core/smallvec_type.hpp
+++ b/src/core/smallvec_type.hpp
@@ -77,9 +77,8 @@ T* grow(std::vector<T>& vec, std::size_t num)
* inside the list.
*
* @param T The type of the items stored, must be a pointer
- * @param S The steps of allocation
*/
-template <typename T, uint S>
+template <typename T>
class AutoFreeSmallVector : public std::vector<T> {
public:
~AutoFreeSmallVector()
@@ -108,9 +107,8 @@ public:
* inside the list.
*
* @param T The type of the items stored, must be a pointer
- * @param S The steps of allocation
*/
-template <typename T, uint S>
+template <typename T>
class AutoDeleteSmallVector : public std::vector<T> {
public:
~AutoDeleteSmallVector()
@@ -131,6 +129,6 @@ public:
}
};
-typedef AutoFreeSmallVector<char*, 4> StringList; ///< Type for a list of strings.
+typedef AutoFreeSmallVector<char*> StringList; ///< Type for a list of strings.
#endif /* SMALLVEC_TYPE_HPP */