diff options
author | Robert Tari <robert@tari.in> | 2024-05-17 16:10:34 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2024-05-17 16:10:34 +0200 |
commit | 4b25c3a134abb60fbd1b3b360d5d877d3b075aa5 (patch) | |
tree | 3f6230564568451c0e4c5357c37f4cc47cdab195 /src/service.cpp | |
parent | 9a605aa2479f99a088fa079ba12a9e86da165166 (diff) | |
parent | bfb74193db0e172bb1db5fc837a4b1ee4688259f (diff) | |
download | ayatana-indicator-display-4b25c3a134abb60fbd1b3b360d5d877d3b075aa5.tar.gz ayatana-indicator-display-4b25c3a134abb60fbd1b3b360d5d877d3b075aa5.tar.bz2 ayatana-indicator-display-4b25c3a134abb60fbd1b3b360d5d877d3b075aa5.zip |
Merge branch 'sunweaver-pr/cppcheck-2.14'
Attributes GH PR #96: https://github.com/AyatanaIndicators/ayatana-indicator-display/pull/96
Diffstat (limited to 'src/service.cpp')
-rw-r--r-- | src/service.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/service.cpp b/src/service.cpp index 26faec9..b26664a 100644 --- a/src/service.cpp +++ b/src/service.cpp @@ -334,7 +334,7 @@ private: #ifdef COLOR_TEMP_ENABLED static void onUserChanged (GDBusConnection *pConnection, const gchar *sSender, const gchar *sPath, const gchar *sInterface, const gchar *sSignal, GVariant *pParameters, gpointer pUserData) { - DisplayIndicator::Impl *pImpl = (DisplayIndicator::Impl*) pUserData; + DisplayIndicator::Impl *pImpl = static_cast<DisplayIndicator::Impl*>(pUserData); g_variant_get (pParameters, "(s)", &pImpl->sUser); loadManager (pImpl); } @@ -449,7 +449,7 @@ private: static gboolean updateColor (gpointer pData) { - DisplayIndicator::Impl *pImpl = (DisplayIndicator::Impl*) pData; + DisplayIndicator::Impl *pImpl = static_cast<DisplayIndicator::Impl*>(pData); if (pImpl->bReadingAccountsService) { @@ -760,7 +760,7 @@ private: static void onGeoClueLoaded (GObject *pObject, GAsyncResult *pResult, gpointer pData) { - DisplayIndicator::Impl *pImpl = (DisplayIndicator::Impl*) pData; + DisplayIndicator::Impl *pImpl = static_cast<DisplayIndicator::Impl*>(pData); GError *pError = NULL; GClueSimple *pSimple = gclue_simple_new_finish (pResult, &pError); @@ -816,7 +816,7 @@ private: { g_simple_action_set_state (pAction, pVariant); - DisplayIndicator::Impl *pImpl = (DisplayIndicator::Impl*) pData; + DisplayIndicator::Impl *pImpl = static_cast<DisplayIndicator::Impl*>(pData); if (pImpl->bAutoSliderUpdate) { |