summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_obj_smallkey.cpp
diff options
context:
space:
mode:
authorroeming <brother64youyou@gmail.com>2026-01-17 08:52:32 -0500
committerGitHub <noreply@github.com>2026-01-17 15:52:32 +0200
commitd45b10d0fd2697b29f7a88e29456dda6cf0aeae6 (patch)
tree82686f75b7f501b49e3bd9e97e3546c7493f5f30 /src/d/actor/d_a_obj_smallkey.cpp
parent740387eb4fdea77e60dea9b265f41a7c564c9a32 (diff)
`fopAcM_Register` cleanup (#3047)
* use macro `fopAcM_Register` more consistently * replace fopAcM_RegisterCreateID with version that doesn't create `a_this`
Diffstat (limited to 'src/d/actor/d_a_obj_smallkey.cpp')
-rw-r--r--src/d/actor/d_a_obj_smallkey.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/d/actor/d_a_obj_smallkey.cpp b/src/d/actor/d_a_obj_smallkey.cpp
index cc2614aba4..d20800fdd7 100644
--- a/src/d/actor/d_a_obj_smallkey.cpp
+++ b/src/d/actor/d_a_obj_smallkey.cpp
@@ -539,13 +539,14 @@ static int daKey_Execute(daKey_c* i_this) {
}
static int daKey_Delete(daKey_c* i_this) {
- fpc_ProcID id = fopAcM_GetID(i_this);
+ fopAcM_RegisterDeleteID(i_this, "ObjSKey");
return i_this->_delete();
}
static int daKey_Create(fopAc_ac_c* i_this) {
- fpc_ProcID id = fopAcM_GetID(i_this);
- return ((daKey_c*)i_this)->create();
+ daKey_c* a_this = (daKey_c*)i_this;
+ fopAcM_RegisterCreateID(i_this, "ObjSKey");
+ return a_this->create();
}
static actor_method_class l_daKey_Method = {