diff options
author | rtk0c <[email protected]> | 2022-11-27 12:04:31 -0800 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-11-27 12:04:31 -0800 |
commit | 182c8f8357739f905bbd721006480502435b6b43 (patch) | |
tree | 082613a474d863182e2ad8f2167f1643f26e67a3 /app/source/Cplt/Utils/Size.hpp | |
parent | b01ed99a1cd0c863c8709930658513c04dd70f61 (diff) |
Update brace style to match rest of my projectscplt-imgui
Diffstat (limited to 'app/source/Cplt/Utils/Size.hpp')
-rw-r--r-- | app/source/Cplt/Utils/Size.hpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/app/source/Cplt/Utils/Size.hpp b/app/source/Cplt/Utils/Size.hpp index ae38e8a..bcad488 100644 --- a/app/source/Cplt/Utils/Size.hpp +++ b/app/source/Cplt/Utils/Size.hpp @@ -18,25 +18,21 @@ public: } Size2(Vec2<T> vec) - : width{ vec.x }, height{ vec.y } - { + : width{ vec.x }, height{ vec.y } { } - operator Vec2<T>() const - { + operator Vec2<T>() const { return { width, height }; } - Vec2<T> AsVec() const - { + Vec2<T> AsVec() const { return { width, height }; } friend bool operator==(const Size2<T>&, const Size2<T>&) = default; template <class TTarget> - Size2<TTarget> Cast() const - { + Size2<TTarget> Cast() const { return { static_cast<TTarget>(width), static_cast<TTarget>(height), |