Replace clear() with resize(0) and data_ -> store_

This commit is contained in:
Victor Zverovich
2017-03-11 07:43:26 -08:00
parent 23b8c24da4
commit f423e46835
5 changed files with 23 additions and 28 deletions

View File

@@ -128,7 +128,7 @@ TEST(FormatTest, FormatErrorCode) {
EXPECT_EQ(prefix + sep + msg, to_string(buffer));
std::size_t size = fmt::internal::INLINE_BUFFER_SIZE;
EXPECT_EQ(size, buffer.size());
buffer.clear();
buffer.resize(0);
// Test with a message that doesn't fit into the buffer.
prefix += 'x';
fmt::format_error_code(buffer, codes[i], prefix);