From 5133bf06e0398d43861ac0d2b19ca9bc9a03ec1e Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 10 Mar 2015 16:18:02 -0500 Subject: Pedantic use of auto --- tests/indicator-test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/indicator-test.cpp b/tests/indicator-test.cpp index 8f87191..0991db5 100644 --- a/tests/indicator-test.cpp +++ b/tests/indicator-test.cpp @@ -98,7 +98,7 @@ TEST_F(IndicatorTest, SingleMessage) { static void messageReplyActivate (GObject * obj, gchar * name, GVariant * value, gpointer user_data) { - std::string * res = reinterpret_cast(user_data); + auto res = reinterpret_cast(user_data); *res = g_variant_get_string(value, nullptr); } -- cgit v1.2.3