From bc9147a10c7287f285ddc1c246cc9d38cd5987c4 Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Wed, 17 Sep 2008 16:45:34 +0000 Subject: 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 --- chrome/common/stl_util-inl.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'chrome/common/stl_util-inl.h') 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 std::vector SetToVector(const std::set& values) { std::vector result; result.reserve(values.size()); - std::set::const_iterator end = values.end(); - for (std::set::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__ - -- cgit v1.1