Using FMT_NULLPTR instead of literal 0

This commit is contained in:
alabuzhev authored and Victor Zverovich committed 2016-11-03 06:39:40 -07:00
1 parent 7ce7def515
commit 49ccb2e449
10 files changed
+52 -42

No files matched your search

+1 -1
View File
@@ -250,7 +250,7 @@ TEST(WriterTest, Allocator) {
std::size_t size =
static_cast<std::size_t>(1.5 * fmt::internal::INLINE_BUFFER_SIZE);
std::vector<char> mem(size);
EXPECT_CALL(alloc, allocate(size)).WillOnce(testing::Return(&mem[0]));
EXPECT_CALL(alloc, allocate(size, 0)).WillOnce(testing::Return(&mem[0]));
for (int i = 0; i < fmt::internal::INLINE_BUFFER_SIZE + 1; ++i)
w << '*';
EXPECT_CALL(alloc, deallocate(&mem[0], size));