[Utils] Inline array merging
This commit is contained in:
parent
76c3a2f330
commit
1d7006c420
@ -9,7 +9,7 @@ namespace Utils
|
|||||||
|
|
||||||
bool IsWineEnvironment();
|
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)
|
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)
|
for (auto &entry : source)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user