aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-03-11 18:25:17 +0100
committerfunjoker <funjoker109@gmail.com>2024-03-25 20:16:47 +0100
commitb45f7583c71b8312422c87dbf4b4afafd8b438a7 (patch)
tree544e716039282df6e8ba44ccc8a857d2b51870ce
parented11978fb8ef80900968781f54a8545a569aeb5e (diff)
Fix tests build
(cherry picked from commit 1f3ebbb23cea1778ddc5ca52941861a98b667530)
-rw-r--r--src/common/Utilities/UniqueTrackablePtr.h6
-rw-r--r--tests/common/UniqueTrackablePtr.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/common/Utilities/UniqueTrackablePtr.h b/src/common/Utilities/UniqueTrackablePtr.h
index 0a09ead1eed..b3a747d4b0f 100644
--- a/src/common/Utilities/UniqueTrackablePtr.h
+++ b/src/common/Utilities/UniqueTrackablePtr.h
@@ -15,8 +15,8 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef TRINITYCORE_UNIQUE_TRACKING_PTR_H
-#define TRINITYCORE_UNIQUE_TRACKING_PTR_H
+#ifndef TRINITYCORE_UNIQUE_TRACKABLE_PTR_H
+#define TRINITYCORE_UNIQUE_TRACKABLE_PTR_H
#include "Define.h"
#include <memory>
@@ -271,4 +271,4 @@ std::enable_if_t<std::is_bounded_array_v<T>, unique_trackable_ptr<T>> make_uniqu
}
}
-#endif // TRINITYCORE_UNIQUE_TRACKING_PTR_H
+#endif // TRINITYCORE_UNIQUE_TRACKABLE_PTR_H
diff --git a/tests/common/UniqueTrackablePtr.cpp b/tests/common/UniqueTrackablePtr.cpp
index 6a1db9fa277..11fdb226ba5 100644
--- a/tests/common/UniqueTrackablePtr.cpp
+++ b/tests/common/UniqueTrackablePtr.cpp
@@ -17,7 +17,7 @@
#include "tc_catch2.h"
-#include "UniqueTrackingPtr.h"
+#include "UniqueTrackablePtr.h"
struct TestObj
{
@@ -32,7 +32,7 @@ struct TestObj
bool* Deleted = nullptr;
};
-TEST_CASE("Trinity::unique_trackable_ptr frees memory", "[UniqueTrackingPtr]")
+TEST_CASE("Trinity::unique_trackable_ptr frees memory", "[UniqueTrackablePtr]")
{
bool deleted = false;
@@ -57,7 +57,7 @@ TEST_CASE("Trinity::unique_trackable_ptr frees memory", "[UniqueTrackingPtr]")
}
}
-TEST_CASE("Trinity::unique_weak_ptr", "[UniqueTrackingPtr]")
+TEST_CASE("Trinity::unique_weak_ptr", "[UniqueTrackablePtr]")
{
Trinity::unique_trackable_ptr<int> ptr = Trinity::make_unique_trackable<int>();