aboutsummaryrefslogtreecommitdiff
path: root/tests/name-watch-test.cc
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-12-09 12:00:39 +0100
committerRobert Tari <robert@tari.in>2021-12-09 12:03:07 +0100
commitf696e54c767f4971f81237f8e4234289aa3c1b01 (patch)
tree6e48a65257a071273e7f30b4098aa807e04bc13f /tests/name-watch-test.cc
parent09dde5270d94be7ec55a4ede3ca4007be097b343 (diff)
downloadayatana-indicator-sound-f696e54c767f4971f81237f8e4234289aa3c1b01.tar.gz
ayatana-indicator-sound-f696e54c767f4971f81237f8e4234289aa3c1b01.tar.bz2
ayatana-indicator-sound-f696e54c767f4971f81237f8e4234289aa3c1b01.zip
Fix cppcheck warnings
Diffstat (limited to 'tests/name-watch-test.cc')
-rw-r--r--tests/name-watch-test.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/name-watch-test.cc b/tests/name-watch-test.cc
index cf06403..263b3f2 100644
--- a/tests/name-watch-test.cc
+++ b/tests/name-watch-test.cc
@@ -1,5 +1,6 @@
/*
* Copyright 2013 Canonical Ltd.
+ * Copyright 2021 Robert Tari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +16,7 @@
*
* Authors:
* Ted Gould <ted@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#include <gio/gio.h>
@@ -41,8 +43,8 @@ class NameWatchTest : public ::testing::Test
}
static gboolean timeout_cb (gpointer user_data) {
- GMainLoop * loop = static_cast<GMainLoop *>(user_data);
- g_main_loop_quit(loop);
+ GMainLoop * pLoop = static_cast<GMainLoop *>(user_data);
+ g_main_loop_quit(pLoop);
return G_SOURCE_REMOVE;
}