From dc93b1e9b3e05dfd3e271aaccbee1210180a6906 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 7 Nov 2024 21:19:01 +0100 Subject: update clang-format and run `make format` over my (loek)s files --- src/crepe/util/Proxy.h | 7 +++---- src/crepe/util/Proxy.hpp | 9 ++++----- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'src/crepe/util') diff --git a/src/crepe/util/Proxy.h b/src/crepe/util/Proxy.h index fbfed0c..f84e462 100644 --- a/src/crepe/util/Proxy.h +++ b/src/crepe/util/Proxy.h @@ -16,9 +16,9 @@ template class Proxy { public: //! Set operator - Proxy & operator = (const T &); + Proxy & operator=(const T &); //! Get operator - operator const T & (); + operator const T &(); public: Proxy(ValueBroker); @@ -27,7 +27,6 @@ private: ValueBroker broker; }; -} +} // namespace crepe #include "Proxy.hpp" - diff --git a/src/crepe/util/Proxy.hpp b/src/crepe/util/Proxy.hpp index 4aec9e9..b9923db 100644 --- a/src/crepe/util/Proxy.hpp +++ b/src/crepe/util/Proxy.hpp @@ -5,18 +5,17 @@ namespace crepe { template -Proxy::Proxy(ValueBroker broker) : broker(broker) { } +Proxy::Proxy(ValueBroker broker) : broker(broker) {} template -Proxy & Proxy::operator = (const T & val) { +Proxy & Proxy::operator=(const T & val) { this->broker.set(val); return *this; } template -Proxy::operator const T & () { +Proxy::operator const T &() { return this->broker.get(); } -} - +} // namespace crepe -- cgit v1.2.3