Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(947)

Unified Diff: chrome/common/stl_util-inl.h

Issue 2929: Some initial work on compiling chrome/common/ on Linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/slide_animation.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/stl_util-inl.h
===================================================================
--- chrome/common/stl_util-inl.h (revision 2299)
+++ chrome/common/stl_util-inl.h (working copy)
@@ -441,12 +441,8 @@
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(0, values.begin(), value.end());
return result;
}
#endif // CHROME_COMMON_STL_UTIL_INL_H__
-
« no previous file with comments | « chrome/common/slide_animation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698