From 65254486efff0fd1bb78a48ff90b7713a5ce539f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 29 Jan 2024 18:17:47 +0100 Subject: Kernel: Update TODO. Src: Refactorings according to clang-format. Meta: Update specification. Public: Remove useless UIKit. Signed-off-by: Amlal El Mahrouss --- Private/Source/Network/NetworkDevice.cpp | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'Private/Source/Network/NetworkDevice.cpp') diff --git a/Private/Source/Network/NetworkDevice.cpp b/Private/Source/Network/NetworkDevice.cpp index 766e1f2e..bd75d7ed 100644 --- a/Private/Source/Network/NetworkDevice.cpp +++ b/Private/Source/Network/NetworkDevice.cpp @@ -12,23 +12,21 @@ // network devices implementation. // PPPNetworkService, TCPNetworkDevice, UDPNetworkService -namespace hCore -{ - NetworkDevice::NetworkDevice(void (*out)(NetworkDeviceCommand), void (*in)(NetworkDeviceCommand), void(*on_cleanup)(void)) - : DeviceInterface(out, in), fCleanup(on_cleanup) - { +namespace hCore { +NetworkDevice::NetworkDevice(void (*out)(NetworkDeviceCommand), + void (*in)(NetworkDeviceCommand), + void (*on_cleanup)(void)) + : DeviceInterface(out, in), fCleanup(on_cleanup) { #ifdef __DEBUG__ - kcout << "NetworkDevice init.\r\n"; + kcout << "NetworkDevice init.\r\n"; #endif - } +} - NetworkDevice::~NetworkDevice() - { +NetworkDevice::~NetworkDevice() { #ifdef __DEBUG__ - kcout << "NetworkDevice cleanup.\r\n"; + kcout << "NetworkDevice cleanup.\r\n"; #endif - if (fCleanup) - fCleanup(); - } -} // namespace NewKit + if (fCleanup) fCleanup(); +} +} // namespace hCore -- cgit v1.2.3