diff options
author | Robert Tari <robert@tari.in> | 2021-12-09 12:00:39 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-12-09 12:03:07 +0100 |
commit | f696e54c767f4971f81237f8e4234289aa3c1b01 (patch) | |
tree | 6e48a65257a071273e7f30b4098aa807e04bc13f /tests/volume-control-test.cc | |
parent | 09dde5270d94be7ec55a4ede3ca4007be097b343 (diff) | |
download | ayatana-indicator-sound-f696e54c767f4971f81237f8e4234289aa3c1b01.tar.gz ayatana-indicator-sound-f696e54c767f4971f81237f8e4234289aa3c1b01.tar.bz2 ayatana-indicator-sound-f696e54c767f4971f81237f8e4234289aa3c1b01.zip |
Fix cppcheck warnings
Diffstat (limited to 'tests/volume-control-test.cc')
-rw-r--r-- | tests/volume-control-test.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/volume-control-test.cc b/tests/volume-control-test.cc index f25048b..36fa05e 100644 --- a/tests/volume-control-test.cc +++ b/tests/volume-control-test.cc @@ -1,5 +1,6 @@ /* * Copyright 2014 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 <gtest/gtest.h> @@ -62,8 +64,8 @@ class VolumeControlTest : 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; } |