From 810f42c0c7d9b07b6e759a1e0a0e103006619705 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 29 Sep 2014 09:59:49 -0700 Subject: [PATCH] Fix util-test on Windows, take 2 --- test/util-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/util-test.cc b/test/util-test.cc index 9034b3f8..10c1960a 100644 --- a/test/util-test.cc +++ b/test/util-test.cc @@ -638,7 +638,7 @@ TEST(UtilTest, UTF8ToUTF16) { template void check_utf_conversion_error(const char *message) { - fmt::Writer out; + fmt::MemoryWriter out; fmt::internal::format_windows_error(out, ERROR_INVALID_PARAMETER, message); fmt::SystemError error(0, ""); try { @@ -735,7 +735,7 @@ TEST(UtilTest, WindowsError) { } TEST(UtilTest, ReportWindowsError) { - fmt::Writer out; + fmt::MemoryWriter out; fmt::internal::format_windows_error(out, ERROR_FILE_EXISTS, "test error"); out << '\n'; EXPECT_WRITE(stderr,