mesosphere: Result{} => Result()

This commit is contained in:
Michael Scire
2018-11-05 11:40:24 -08:00
parent cd1f74154d
commit 0a0c05481e
4 changed files with 11 additions and 11 deletions

View File

@@ -0,0 +1,26 @@
#include <mesosphere/processes/KEvent.hpp>
#include <mesosphere/core/KCoreContext.hpp>
#include <mesosphere/processes/KProcess.hpp>
namespace mesosphere
{
KEvent::~KEvent()
{
}
bool KEvent::IsAlive() const
{
return isInitialized;
}
Result KEvent::Initialize()
{
SetClientServerParent();
SetResourceOwner(KCoreContext::GetCurrentInstance().GetCurrentProcess());
isInitialized = true;
return ResultSuccess();
}
}

View File

@@ -24,14 +24,14 @@ Result KReadableEvent::Signal()
NotifyWaiters();
}
return ResultSuccess{};
return ResultSuccess();
}
Result KReadableEvent::Clear()
{
Reset();
return ResultSuccess{};
return ResultSuccess();
}
Result KReadableEvent::Reset()
@@ -40,9 +40,9 @@ Result KReadableEvent::Reset()
if (this->isSignaled) {
this->isSignaled = false;
return ResultSuccess{};
return ResultSuccess();
}
return ResultKernelInvalidState{};
return ResultKernelInvalidState();
}
}