kernel/shared_memory: Make data members private
Rather than allow unfettered access to the class internals, we hide all members by default and create and API that other code can operate against.
This commit is contained in:
parent
662c3ff684
commit
1cb9bea504
7 changed files with 31 additions and 18 deletions
|
@ -65,7 +65,7 @@ ResultCode SoftwareKeyboard::StartImpl(Service::APT::AppletStartupParameter cons
|
|||
boost::static_pointer_cast<Kernel::SharedMemory, Kernel::Object>(parameter.object);
|
||||
|
||||
// TODO(Subv): Verify if this is the correct behavior
|
||||
memset(text_memory->GetPointer(), 0, text_memory->size);
|
||||
memset(text_memory->GetPointer(), 0, text_memory->GetSize());
|
||||
|
||||
DrawScreenKeyboard();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue