Utils: Add clone functions to small string

Change-Id: I4e1ff40437253ce9fa047b476edb5d69654963b2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2016-08-01 17:22:28 +02:00
parent 95ace75cc4
commit 4d29ca2d3a
2 changed files with 33 additions and 12 deletions

View File

@@ -148,18 +148,6 @@ private:
}
};
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;
}
inline QDataStream &operator<<(QDataStream &out, const SmallStringVector &stringVector)
{
out << quint64(stringVector.size());