diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-20 14:01:31 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-20 14:01:31 +0100 |
commit | 02845c3d25130e9473604cb2eeee42a7a7a8eadf (patch) | |
tree | 71969b17161d13d044d033d0ee7fd47deadb6575 /src/crepe/util | |
parent | d79148947bc43764b041687b7c6ad2d6c944f70b (diff) |
`make format`
Diffstat (limited to 'src/crepe/util')
-rw-r--r-- | src/crepe/util/OptionalRef.h | 13 | ||||
-rw-r--r-- | src/crepe/util/OptionalRef.hpp | 3 |
2 files changed, 7 insertions, 9 deletions
diff --git a/src/crepe/util/OptionalRef.h b/src/crepe/util/OptionalRef.h index 8417a25..0a94ae5 100644 --- a/src/crepe/util/OptionalRef.h +++ b/src/crepe/util/OptionalRef.h @@ -23,7 +23,7 @@ public: * * \return Reference to this (required for operator) */ - OptionalRef<T> & operator=(T & ref); + OptionalRef<T> & operator=(T & ref); /** * \brief Check if this reference is not empty * @@ -51,13 +51,13 @@ public: void clear() noexcept; //! Copy constructor - OptionalRef(const OptionalRef<T> &); + OptionalRef(const OptionalRef<T> &); //! Move constructor - OptionalRef(OptionalRef<T> &&); + OptionalRef(OptionalRef<T> &&); //! Copy assignment - OptionalRef<T> & operator=(const OptionalRef<T> &); + OptionalRef<T> & operator=(const OptionalRef<T> &); //! Move assignment - OptionalRef<T> & operator=(OptionalRef<T> &&); + OptionalRef<T> & operator=(OptionalRef<T> &&); private: /** @@ -68,7 +68,6 @@ private: T * ref = nullptr; }; -} +} // namespace crepe #include "OptionalRef.hpp" - diff --git a/src/crepe/util/OptionalRef.hpp b/src/crepe/util/OptionalRef.hpp index 7b201b0..ee41f61 100644 --- a/src/crepe/util/OptionalRef.hpp +++ b/src/crepe/util/OptionalRef.hpp @@ -63,5 +63,4 @@ OptionalRef<T>::operator bool() const noexcept { return this->ref != nullptr; } -} - +} // namespace crepe |