DownloadEngine: Use std::unique_ptr for eventPoll_

This commit is contained in:
Tatsuhiro Tsujikawa 2013-07-06 19:39:16 +09:00
parent f83b0fcfa3
commit 00e27e4fa4
6 changed files with 32 additions and 26 deletions

View file

@ -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());