diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-17 16:45:34 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-17 16:45:34 +0000 |
commit | bc9147a10c7287f285ddc1c246cc9d38cd5987c4 (patch) | |
tree | 0e8516815d0fd31b439a4cebe4baf8e9e94c98d6 /chrome/common/stl_util-inl.h | |
parent | c12bf1a1aa1a24d7f516b7e76428518c594d7da5 (diff) | |
download | chromium_src-bc9147a10c7287f285ddc1c246cc9d38cd5987c4.zip chromium_src-bc9147a10c7287f285ddc1c246cc9d38cd5987c4.tar.gz chromium_src-bc9147a10c7287f285ddc1c246cc9d38cd5987c4.tar.bz2 |
Some initial work on compiling chrome/common/ on Linux.
Patch from Pawel Hajdan Jr.
BUG=2410
Review URL: http://codereview.chromium.org/2929
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2311 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/stl_util-inl.h')
-rw-r--r-- | chrome/common/stl_util-inl.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/common/stl_util-inl.h b/chrome/common/stl_util-inl.h index 27587ca..7c4983a 100644 --- a/chrome/common/stl_util-inl.h +++ b/chrome/common/stl_util-inl.h @@ -441,12 +441,8 @@ 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); - } + result.insert(result.begin(), values.begin(), values.end()); return result; } #endif // CHROME_COMMON_STL_UTIL_INL_H__ - |