summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actBaseProcLink.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-08-20 18:47:59 +0200
committerLéo Lam <leo@leolam.fr>2020-08-20 18:47:59 +0200
commitefdedd1d888cc9b501166d48c6ca26bb242a5d23 (patch)
treee75c2fe314cb9657c4517472c72fd4f06a230e79 /src/KingSystem/ActorSystem/actBaseProcLink.cpp
parentafde5b27753162e187cffc6ec765099bd0767459 (diff)
ksys/act: Fix const-correctness for BaseProcLink::getProc
Diffstat (limited to 'src/KingSystem/ActorSystem/actBaseProcLink.cpp')
-rw-r--r--src/KingSystem/ActorSystem/actBaseProcLink.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/ActorSystem/actBaseProcLink.cpp b/src/KingSystem/ActorSystem/actBaseProcLink.cpp
index a99960d9..677e1aaf 100644
--- a/src/KingSystem/ActorSystem/actBaseProcLink.cpp
+++ b/src/KingSystem/ActorSystem/actBaseProcLink.cpp
@@ -39,7 +39,7 @@ bool BaseProcLink::hasProcById(BaseProc* proc) const {
return proc != nullptr & mId != cInvalidId && mId == proc->getId();
}
-BaseProc* BaseProcLink::getProc(ActorLinkConstDataAccess* accessor, BaseProc* other_proc) {
+BaseProc* BaseProcLink::getProc(ActorLinkConstDataAccess* accessor, BaseProc* other_proc) const {
return getProcInContext([&](BaseProc* proc) -> BaseProc* {
if (proc && acquireProc(accessor, proc, "frm::BaseProcLink") &&
BaseProcMgr::instance()->isAccessingProcSafe(proc, other_proc)) {
@@ -49,7 +49,7 @@ BaseProc* BaseProcLink::getProc(ActorLinkConstDataAccess* accessor, BaseProc* ot
});
}
-BaseProc* BaseProcLink::getProc(ActorLinkConstDataAccess* accessor) {
+BaseProc* BaseProcLink::getProc(ActorLinkConstDataAccess* accessor) const {
return getProcInContext([&](BaseProc* proc) -> BaseProc* {
if (proc && acquireProc(accessor, proc, "frm::BaseProcLink"))
return proc;