From b157e2c472d8bd67ac1656404a6a6ee821260f4b Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 29 Oct 2025 15:01:43 +0100 Subject: chore: reformat source code --- libs/kstd/include/kstd/bits/shared_ptr.hpp | 6 +++--- libs/kstd/include/kstd/bits/unique_ptr.hpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'libs/kstd/include') diff --git a/libs/kstd/include/kstd/bits/shared_ptr.hpp b/libs/kstd/include/kstd/bits/shared_ptr.hpp index d41b165..251c187 100644 --- a/libs/kstd/include/kstd/bits/shared_ptr.hpp +++ b/libs/kstd/include/kstd/bits/shared_ptr.hpp @@ -39,7 +39,7 @@ namespace kstd * @param other The shared_ptr to copy from. */ [[gnu::section(".stl_text")]] - shared_ptr(const shared_ptr & other) + shared_ptr(shared_ptr const & other) : pointer(other.pointer) , ref_count(other.ref_count) { @@ -72,7 +72,7 @@ namespace kstd * @return Reference to this shared pointer. */ [[gnu::section(".stl_text")]] - shared_ptr & operator=(const shared_ptr & other) + shared_ptr & operator=(shared_ptr const & other) { if (this != &other) { @@ -216,7 +216,7 @@ namespace kstd * @brief Defaulted three-way comparator operator. */ [[gnu::section(".stl_text")]] - auto operator<=>(const shared_ptr & other) const = default; + auto operator<=>(shared_ptr const & other) const = default; private: /** diff --git a/libs/kstd/include/kstd/bits/unique_ptr.hpp b/libs/kstd/include/kstd/bits/unique_ptr.hpp index 1932913..5f54848 100644 --- a/libs/kstd/include/kstd/bits/unique_ptr.hpp +++ b/libs/kstd/include/kstd/bits/unique_ptr.hpp @@ -38,12 +38,12 @@ namespace kstd /** * @brief Deleted copy constructor to enforce unique ownership. */ - unique_ptr(const unique_ptr &) = delete; + unique_ptr(unique_ptr const &) = delete; /** * @brief Deleted copy assignment operator to enforce unique ownership. */ - auto operator=(const unique_ptr &) -> unique_ptr & = delete; + auto operator=(unique_ptr const &) -> unique_ptr & = delete; /** * @brief Move constructor. @@ -167,7 +167,7 @@ namespace kstd * @brief Defaulted three-way comparator operator. */ [[gnu::section(".stl_text")]] - auto operator<=>(const unique_ptr & other) const = default; + auto operator<=>(unique_ptr const & other) const = default; private: T * pointer; ///< The managed pointer. -- cgit v1.2.3