diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-09 02:50:07 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-09 02:52:34 +0100 |
| commit | 4d192e629a07ae457134cb0063e0136e54b01008 (patch) | |
| tree | b933444d27c2b9ac22693e2e65bd294792c79d39 /src/boot/BootKit/HW/SATA.h | |
| parent | f78c535aec66e02584e1b02995dc12c9e1bcb64c (diff) | |
chore: Codebase improvements and tweaks.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/boot/BootKit/HW/SATA.h')
| -rw-r--r-- | src/boot/BootKit/HW/SATA.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/boot/BootKit/HW/SATA.h b/src/boot/BootKit/HW/SATA.h index 68ed30c8..442ea399 100644 --- a/src/boot/BootKit/HW/SATA.h +++ b/src/boot/BootKit/HW/SATA.h @@ -12,6 +12,7 @@ #define kAHCISectorSz (512) +namespace Boot { class BootDeviceSATA final { public: explicit BootDeviceSATA(); @@ -23,7 +24,7 @@ class BootDeviceSATA final { Kernel::Boolean mErr{false}; Kernel::Boolean mDetected{false}; - operator bool() { return !this->mErr; } + explicit operator bool() { return !this->mErr; } }; operator bool() { return this->Leak().mDetected; } @@ -40,3 +41,4 @@ class BootDeviceSATA final { private: SATATrait mTrait; }; +} // namespace Boot
\ No newline at end of file |
