Skip to content

Commit

Permalink
chore: only log object type name
Browse files Browse the repository at this point in the history
If the object does not implement `QDebug operator<<(QDebug , const Object *)`
it cannot be printed with QDebug
  • Loading branch information
kegechen committed Feb 20, 2024
1 parent f0129fa commit 7b3183c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vtablehook.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: " << typeid(obj).name();
abort();
}

Expand Down

0 comments on commit 7b3183c

Please sign in to comment.