mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 15:18:20 +00:00
base-hw: coding style
Improve consistency with the other base repositories, in particular - Indentation of class initializers - Vertical whitespace around control-flow statements - Preferably place control-flow statements (return, break, continue) at beginning of a line - Placing the opening brace of a namespace at the end of line - Placing the opening brace of a class at a new line - Removing superfluous braces around single statements - Two empty lines between methods/functions in implementation files
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
#include <kernel/object.h>
|
||||
|
||||
namespace Genode {
|
||||
|
||||
/**
|
||||
* Represents a kernel object in core
|
||||
*
|
||||
@ -50,10 +51,12 @@ class Genode::Kernel_object : public Genode::Constructible<Kernel::Core_object<T
|
||||
*/
|
||||
template <typename... ARGS>
|
||||
Kernel_object(bool syscall, ARGS &&... args)
|
||||
: _cap(Capability_space::import(syscall ? T::syscall_create(*this, args...)
|
||||
: Kernel::cap_id_invalid()))
|
||||
:
|
||||
_cap(Capability_space::import(syscall ? T::syscall_create(*this, args...)
|
||||
: Kernel::cap_id_invalid()))
|
||||
{
|
||||
if (!syscall) Genode::Constructible<Kernel::Core_object<T>>::construct(args...);
|
||||
if (!syscall)
|
||||
Genode::Constructible<Kernel::Core_object<T>>::construct(args...);
|
||||
}
|
||||
|
||||
~Kernel_object()
|
||||
|
Reference in New Issue
Block a user