From 94ba0a4147052dec53e2ba818ec3d03141e8f26b Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 6 Oct 2014 15:57:13 -0500 Subject: don't use 'auto tmp = ...' when tmp is going to be passed to g_free() --- tests/glib-fixture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/glib-fixture.h b/tests/glib-fixture.h index a5da2f5..65d2921 100644 --- a/tests/glib-fixture.h +++ b/tests/glib-fixture.h @@ -67,7 +67,7 @@ class GlibFixture : public ::testing::Test const gchar * message, gpointer self) { - auto tmp = g_strdup_printf ("%s:%d \"%s\"", log_domain, (int)log_level, message); + char* tmp = g_strdup_printf ("%s:%d \"%s\"", log_domain, (int)log_level, message); static_cast(self)->log[log_level].push_back(tmp); g_free(tmp); } -- cgit v1.2.3