summaryrefslogtreecommitdiff
path: root/src/plugins/HookSystem.cpp
diff options
context:
space:
mode:
authorKamikadze <40305144+Kam1k4dze@users.noreply.github.com>2025-05-31 23:49:50 +0500
committerGitHub <noreply@github.com>2025-05-31 19:49:50 +0100
commit69c2b2926e128f1fd09080aed43944987a42026f (patch)
treec92596715498f30ae33767d3c93268d4f01aec6f /src/plugins/HookSystem.cpp
parent4078e1d17c0fb1439ee5a0ba1e539f06a8f47aab (diff)
internal: refactor to use empty() (#10599)
Diffstat (limited to 'src/plugins/HookSystem.cpp')
-rw-r--r--src/plugins/HookSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/HookSystem.cpp b/src/plugins/HookSystem.cpp
index 8bb660e6..f39eb145 100644
--- a/src/plugins/HookSystem.cpp
+++ b/src/plugins/HookSystem.cpp
@@ -167,7 +167,7 @@ bool CFunctionHook::hook() {
const auto PROBEFIXEDASM = fixInstructionProbeRIPCalls(probe);
- if (PROBEFIXEDASM.bytes.size() == 0) {
+ if (PROBEFIXEDASM.bytes.empty()) {
Debug::log(ERR, "[functionhook] failed, unsupported asm / failed assembling:\n{}", probe.assembly);
return false;
}