From 9f906cffe379336edfe4cf477099ab66b5c8a1b2 Mon Sep 17 00:00:00 2001 From: ck Date: Tue, 20 Feb 2024 13:13:46 +0800 Subject: [PATCH] chore: avoid build error If the object does not implement `QDebug operator<<(QDebug , const Object *)` it cannot be printed with QDebug --- src/vtablehook.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vtablehook.h b/src/vtablehook.h index 921ed06d..f0b99012 100644 --- a/src/vtablehook.h +++ b/src/vtablehook.h @@ -317,7 +317,7 @@ class VtableHook rvf.oldFun = resetVfptrFun((void*)obj, fun_offset); if (!rvf.oldFun) { - qCWarning(vtableHook) << "Reset the function failed, object: " << obj; + qCWarning(vtableHook) << "Reset the function failed, object address:" << static_cast(obj); abort(); }