changeset 29602:767cda46e091

qt-graphics-toolkit.cc: Use correct format specifier for "void *" type. * libgui/graphics/qt-graphics-toolkit.cc (initialize, update, finalize, create_object): Use "%p" as format specifier for "void *" type. (Reported by CodeQL.)
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 04 May 2021 16:15:50 +0200
parents eaf0943b7361
children 74040b0ba403
files libgui/graphics/qt-graphics-toolkit.cc
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/graphics/qt-graphics-toolkit.cc	Tue May 04 08:54:39 2021 -0400
+++ b/libgui/graphics/qt-graphics-toolkit.cc	Tue May 04 16:15:50 2021 +0200
@@ -139,7 +139,7 @@
 
         gh_mgr.unlock ();
 
-        Logger::debug ("qt_graphics_toolkit::initialize %s from thread %08x",
+        Logger::debug ("qt_graphics_toolkit::initialize %s from thread %p",
                        go.type ().c_str (), QThread::currentThreadId ());
 
         ObjectProxy *proxy = new ObjectProxy ();
@@ -173,7 +173,7 @@
         || pId == base_properties::ID___MODIFIED__)
       return;
 
-    Logger::debug ("qt_graphics_toolkit::update %s(%d) from thread %08x",
+    Logger::debug ("qt_graphics_toolkit::update %s(%d) from thread %p",
                    go.type ().c_str (), pId, QThread::currentThreadId ());
 
     ObjectProxy *proxy = toolkitObjectProxy (go);
@@ -205,7 +205,7 @@
 
     gh_mgr.unlock ();
 
-    Logger::debug ("qt_graphics_toolkit::finalize %s from thread %08x",
+    Logger::debug ("qt_graphics_toolkit::finalize %s from thread %p",
                    go.type ().c_str (), QThread::currentThreadId ());
 
     ObjectProxy *proxy = toolkitObjectProxy (go);
@@ -401,7 +401,7 @@
       }
 
     Logger::debug ("qt_graphics_toolkit::create_object: "
-                   "create %s from thread %08x",
+                   "create %s from thread %p",
                    go.type ().c_str (), QThread::currentThreadId ());
 
     Object *obj = nullptr;