ksys/act: Get rid of some setDirect() calls

This commit is contained in:
Léo Lam 2020-08-20 00:03:13 +02:00
parent 50a8a8c5e3
commit 6989d0f7f8
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
2 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 91650efcd19235db9afe5a4f73fbaa86ce46710a
Subproject commit 2bf8456295d4640862e112fba66cb6bf2cc0ee93

View File

@ -206,7 +206,7 @@ bool BaseProc::processStateUpdate(u8 counter) {
return true;
}
// Try the deletion again later.
mStateFlags.setDirect(StateFlags::RequestDelete);
mStateFlags = StateFlags::RequestDelete;
return false;
}
@ -220,7 +220,7 @@ bool BaseProc::processStateUpdate(u8 counter) {
if (shouldClearStateFlag4000_())
new_flags.makeAllZero();
else
new_flags.setDirect(StateFlags::_4000);
new_flags = StateFlags::_4000;
} else {
new_flags.makeAllZero();
}
@ -263,7 +263,7 @@ bool BaseProc::processStateUpdate(u8 counter) {
if (mStateFlags.isOn(StateFlags::RequestDelete)) {
new_flags.set(StateFlags::RequestDelete);
mStateFlags.setDirect(new_flags.getDirect());
mStateFlags = new_flags;
return false;
}