Skip to content

Commit

Permalink
chore: avoid build error
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 9f906cf
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 address:" << static_cast<void *>(obj);
abort();
}

Expand Down

0 comments on commit 9f906cf

Please sign in to comment.