| Index: chrome/common/stl_util-inl.h
|
| ===================================================================
|
| --- chrome/common/stl_util-inl.h (revision 2303)
|
| +++ chrome/common/stl_util-inl.h (working copy)
|
| @@ -439,13 +439,7 @@
|
| // Translates a set into a vector.
|
| template<typename T>
|
| std::vector<T> SetToVector(const std::set<T>& values) {
|
| - std::vector<T> result;
|
| - result.reserve(values.size());
|
| - std::set<T>::const_iterator end = values.end();
|
| - for (std::set<T>::const_iterator itr = values.begin(); itr != end; ++itr) {
|
| - result.push_back(*itr);
|
| - }
|
| - return result;
|
| + return std::vector<T>(values.begin(), values.end());
|
| }
|
|
|
| #endif // CHROME_COMMON_STL_UTIL_INL_H__
|
|
|