aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-05-04 09:02:26 +0000
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-05-17 12:09:18 +0200
commit9b3eb0bcb6bc6347874b79cdbf2a5c45e2f3c314 (patch)
tree1c83e76b7dff87da4393dc74b8ceb401ce53998f /src
parent8c4b2d9c01ae3d526bde00d5ca8925ced053f9fc (diff)
downloadayatana-indicator-display-9b3eb0bcb6bc6347874b79cdbf2a5c45e2f3c314.tar.gz
ayatana-indicator-display-9b3eb0bcb6bc6347874b79cdbf2a5c45e2f3c314.tar.bz2
ayatana-indicator-display-9b3eb0bcb6bc6347874b79cdbf2a5c45e2f3c314.zip
cppcheck: Replace C-style casts by C++-style static_cast<> casts.
See: https://stackoverflow.com/questions/40899581/is-it-always-safe-to-change-a-c-style-cast-to-a-static-cast
Diffstat (limited to 'src')
-rw-r--r--src/service.cpp8
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)
{