[shotwell/wip/cleanup-facedetect: 11/15] Remove some reinterpret_cast use




commit 77e44ead4ec22f45b5a2c4c82c9087e2fb3b4e9e
Author: Jens Georg <mail jensge org>
Date:   Sat Aug 13 22:24:49 2022 +0200

    Remove some reinterpret_cast use

 subprojects/shotwell-facedetect/shotwell-facedetect.cpp | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/subprojects/shotwell-facedetect/shotwell-facedetect.cpp 
b/subprojects/shotwell-facedetect/shotwell-facedetect.cpp
index 8d84ed0d..9e96eb72 100644
--- a/subprojects/shotwell-facedetect/shotwell-facedetect.cpp
+++ b/subprojects/shotwell-facedetect/shotwell-facedetect.cpp
@@ -51,12 +51,11 @@ static gboolean on_handle_load_net(ShotwellFaces1 *object, GDBusMethodInvocation
     return TRUE;
 }
 
-static gboolean on_handle_terminate(ShotwellFaces1 *object,
-                                    GDBusMethodInvocation *invocation,
-                                    gpointer user_data) {
+static gboolean on_handle_terminate(ShotwellFaces1 *object, GDBusMethodInvocation *invocation, gpointer 
user_data)
+{
     g_debug("Exiting...");
     shotwell_faces1_complete_terminate(object, invocation);
-    g_main_loop_quit(reinterpret_cast<GMainLoop *>(user_data));
+    g_main_loop_quit(static_cast<GMainLoop *>(user_data));
 
     return TRUE;
 }
@@ -84,7 +83,7 @@ static void on_name_lost(GDBusConnection *connection,
     } else {
         g_debug("Connection for name %s disconnected", name);
     }
-    g_main_loop_quit((GMainLoop *)user_data);
+    g_main_loop_quit(static_cast<GMainLoop *>(user_data));
 }
 
 static char* address = nullptr;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]