diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-24 21:46:42 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-24 21:46:42 +0900 |
| commit | 10cdc59297f4e1327217008f2ae073c400959df2 (patch) | |
| tree | 2f586b0842aba8162e37497e25a1ddd6ceb156e6 /test/SessionSerializerTest.cc | |
| parent | d2ec57057e591810ebbb5febb34ae0cadf5068c5 (diff) | |
Remove vbegin and vend in favor of std::begin and std::end
Diffstat (limited to 'test/SessionSerializerTest.cc')
| -rw-r--r-- | test/SessionSerializerTest.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/SessionSerializerTest.cc b/test/SessionSerializerTest.cc index 00442f68..c67b8156 100644 --- a/test/SessionSerializerTest.cc +++ b/test/SessionSerializerTest.cc @@ -35,13 +35,12 @@ CPPUNIT_TEST_SUITE_REGISTRATION(SessionSerializerTest); void SessionSerializerTest::testSave() { #if defined(ENABLE_BITTORRENT) && defined(ENABLE_METALINK) - const std::string URIs[] = - { "http://localhost/file", - "http://mirror/file", - A2_TEST_DIR"/test.torrent", - A2_TEST_DIR"/serialize_session.meta4", - "magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C"}; - std::vector<std::string> uris(vbegin(URIs), vend(URIs)); + std::vector<std::string> uris { + "http://localhost/file", + "http://mirror/file", + A2_TEST_DIR"/test.torrent", + A2_TEST_DIR"/serialize_session.meta4", + "magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C"}; std::vector<std::shared_ptr<RequestGroup> > result; std::shared_ptr<Option> option(new Option()); option->put(PREF_DIR, "/tmp"); |
