aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-28 07:09:11 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-28 07:09:11 +0000
commit627b6f31bbce4904f729e295795a2321c455aed5 (patch)
tree7d3d0c5e62470b9c6b7bdbb929b10fda9653dc45
parentceb546a75826c916aa33061c805ed6cf7e375a90 (diff)
downloadpaludis-627b6f31bbce4904f729e295795a2321c455aed5.tar.gz
paludis-627b6f31bbce4904f729e295795a2321c455aed5.tar.xz
Prefer assign and constructors to std::copy
-rw-r--r--paludis/line_config_file_TEST.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/paludis/line_config_file_TEST.cc b/paludis/line_config_file_TEST.cc
index 3020f83..1c9fee6 100644
--- a/paludis/line_config_file_TEST.cc
+++ b/paludis/line_config_file_TEST.cc
@@ -60,8 +60,7 @@ namespace test_cases
s << " # \t " << std::endl;
s << "four four" << std::endl;
LineConfigFile ff(&s);
- std::vector<std::string> f;
- std::copy(ff.begin(), ff.end(), std::back_inserter(f));
+ std::vector<std::string> f(ff.begin(), ff.end());
TEST_CHECK_EQUAL(f.size(), 4);
TEST_CHECK_EQUAL(f.at(0), "one");