From 018f654476d2b1c3ef7d6a18f7d101e24cc142bf Mon Sep 17 00:00:00 2001 From: Thomas Novotny Date: Tue, 20 Nov 2018 22:55:32 +0100 Subject: [PATCH] removed temporary from VSPrintfMakeArgsExample and VSPrintfMakeWArgsExample again storing the value in a temporary causes even more failures --- test/printf-test.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/printf-test.cc b/test/printf-test.cc index a4d840e8..f36452b9 100644 --- a/test/printf-test.cc +++ b/test/printf-test.cc @@ -521,14 +521,14 @@ TEST(PrintfTest, CheckFormatStringRegression) { TEST(PrintfTest, VSPrintfMakeArgsExample) { - fmt::printf_args args = fmt::make_printf_args( 42, "something"); EXPECT_EQ("[42] something happened", - fmt::vsprintf( "[%d] %s happened", args)); + fmt::vsprintf( + "[%d] %s happened", fmt::make_printf_args( 42, "something" ) ) ); } TEST( PrintfTest, VSPrintfMakeWArgsExample ) { - fmt::wprintf_args args = fmt::make_wprintf_args(42, L"something"); EXPECT_EQ(L"[42] something happened", - fmt::vsprintf(L"[%d] %s happened", args)); + fmt::vsprintf( + L"[%d] %s happened", fmt::make_wprintf_args( 42, L"something" ) ) ); }