[Utils] Inline array merging

This commit is contained in:
momo5502 2017-02-24 11:43:05 +01:00
parent 76c3a2f330
commit 1d7006c420

View File

@ -9,7 +9,7 @@ namespace Utils
bool IsWineEnvironment();
template <typename T> void Merge(std::vector<T>* target, T* source, size_t length)
template <typename T> inline void Merge(std::vector<T>* target, T* source, size_t length)
{
if (source)
{
@ -20,7 +20,7 @@ namespace Utils
}
}
template <typename T> void Merge(std::vector<T>* target, std::vector<T> source)
template <typename T> inline void Merge(std::vector<T>* target, std::vector<T> source)
{
for (auto &entry : source)
{