diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 19:39:16 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 19:39:16 +0900 |
| commit | 00e27e4fa47477109fc467d96241a0fabd3c4ad2 (patch) | |
| tree | 8a89546863e3071329a897364bd09ee1473e8650 /test/SessionSerializerTest.cc | |
| parent | f83b0fcfa38cf80b15b275d48c131fa691d3006b (diff) | |
DownloadEngine: Use std::unique_ptr for eventPoll_
Diffstat (limited to 'test/SessionSerializerTest.cc')
| -rw-r--r-- | test/SessionSerializerTest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SessionSerializerTest.cc b/test/SessionSerializerTest.cc index 1019eb2f..9d996d4c 100644 --- a/test/SessionSerializerTest.cc +++ b/test/SessionSerializerTest.cc @@ -78,7 +78,7 @@ void SessionSerializerTest::testSave() rgman.addDownloadResult(drs[i]); } - DownloadEngine e(std::shared_ptr<EventPoll>(new SelectEventPoll())); + DownloadEngine e(make_unique<SelectEventPoll>()); e.setOption(option.get()); rgman.fillRequestGroupFromReserver(&e); CPPUNIT_ASSERT_EQUAL((size_t)1, rgman.getRequestGroups().size()); |
