mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +03:00
Convert most 0/NULL pointers to nullptr
Courtesy of llvm cpp11-migrate 3.3
This commit is contained in:
parent
9da17424c6
commit
d8f44ef4f6
87 changed files with 253 additions and 253 deletions
|
@ -37,7 +37,7 @@ void GrowSegmentTest::testClear()
|
|||
GrowSegment segment(std::shared_ptr<Piece>(new Piece()));
|
||||
segment.updateWrittenLength(32*1024);
|
||||
CPPUNIT_ASSERT_EQUAL(32*1024, segment.getWrittenLength());
|
||||
segment.clear(0);
|
||||
segment.clear(nullptr);
|
||||
CPPUNIT_ASSERT_EQUAL(0, segment.getWrittenLength());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue