From 362ff08855c7a2307ae38ad48c8d84fd7a353ab8 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Wed, 7 Sep 2022 21:25:46 +0200 Subject: [PATCH] Add doc + small unittest --- code/Common/Maybe.h | 3 ++- test/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/Common/Maybe.h b/code/Common/Maybe.h index 2b016e553..769799c2c 100644 --- a/code/Common/Maybe.h +++ b/code/Common/Maybe.h @@ -63,7 +63,7 @@ struct Maybe { } /// @brief Will assign a value. - /// @param v The enw valid value. + /// @param v The new valid value. void Set(T &v) { ai_assert(!_valid); @@ -79,6 +79,7 @@ struct Maybe { } Maybe &operator&() = delete; + Maybe(const Maybe &) = delete; private: T _val; diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5c87dabbe..87a5ebadb 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -89,6 +89,7 @@ SET( COMMON unit/utProfiler.cpp unit/utSharedPPData.cpp unit/utStringUtils.cpp + unit/Common/utMaybe.cpp unit/Common/utMesh.cpp unit/Common/utStandardShapes.cpp unit/Common/uiScene.cpp