aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-10-06 15:57:13 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-10-06 15:57:13 -0500
commit94ba0a4147052dec53e2ba818ec3d03141e8f26b (patch)
treea0d056d8ef5c710085afbddca6c208fd805cc851 /tests
parent997f89bae00ec896c87a8a3877d2d16fc0175f99 (diff)
downloadayatana-indicator-display-94ba0a4147052dec53e2ba818ec3d03141e8f26b.tar.gz
ayatana-indicator-display-94ba0a4147052dec53e2ba818ec3d03141e8f26b.tar.bz2
ayatana-indicator-display-94ba0a4147052dec53e2ba818ec3d03141e8f26b.zip
don't use 'auto tmp = ...' when tmp is going to be passed to g_free()
Diffstat (limited to 'tests')
-rw-r--r--tests/glib-fixture.h2
1 files changed, 1 insertions, 1 deletions
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<GlibFixture*>(self)->log[log_level].push_back(tmp);
g_free(tmp);
}