1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 10:45:16 +01:00

Mark templates as static

This commit is contained in:
Michał Janiszewski
2017-10-19 23:57:30 +02:00
committed by GitHub
parent b2a781dc1d
commit 69914b3078

View File

@@ -5,7 +5,7 @@
#include <gtest/gtest.h>
template<typename T, typename TExpected>
void AssertVector(std::vector<T> actual, TExpected expected)
static void AssertVector(std::vector<T> actual, TExpected expected)
{
ASSERT_EQ(actual.size(), expected.size()) <<
"Expected vector of size " << expected.size() << ", but was " << actual.size();
@@ -19,7 +19,7 @@ void AssertVector(std::vector<T> actual, TExpected expected)
}
template<typename T>
void AssertVector(std::vector<T> actual, std::initializer_list<T> expected)
static void AssertVector(std::vector<T> actual, std::initializer_list<T> expected)
{
AssertVector<T, std::initializer_list<T>>(actual, expected);
}