summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libs/utils/smallstring.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libs/utils/smallstring.h b/src/libs/utils/smallstring.h
index b050d3f6f1..b945a0f2fe 100644
--- a/src/libs/utils/smallstring.h
+++ b/src/libs/utils/smallstring.h
@@ -930,13 +930,7 @@ clone(const std::unordered_map<Key, Value, Hash, KeyEqual, Allocator> &map)
template <typename Type>
std::vector<Type> clone(const std::vector<Type> &vector)
{
- std::vector<Type> clonedVector;
- clonedVector.reserve(vector.size());
-
- for (auto &&entry : vector)
- clonedVector.push_back(entry.clone());
-
- return clonedVector;
+ return vector;
}
using SmallString = BasicSmallString<31>;