From c8ca951dd81fc0b3148d7c66faf889e565a710f4 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Tue, 26 May 2020 17:36:39 +0200 Subject: [PATCH] Reduce namespace length further --- src/Collections/Dictionary.hpp | 2 +- src/Collections/List.hpp | 2 +- src/Memory/borrowed_ptr.cpp | 1 - src/Memory/borrowed_ptr.hpp | 2 +- tests/DictionaryTests.cpp | 2 +- tests/ListTests.cpp | 2 +- 6 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 src/Memory/borrowed_ptr.cpp diff --git a/src/Collections/Dictionary.hpp b/src/Collections/Dictionary.hpp index d0dfaab..6cfa62b 100644 --- a/src/Collections/Dictionary.hpp +++ b/src/Collections/Dictionary.hpp @@ -4,7 +4,7 @@ #include #include "../Assert.hpp" -namespace ArbUt::Collections { +namespace ArbUt { template class Dictionary { private: std::unordered_map _map; diff --git a/src/Collections/List.hpp b/src/Collections/List.hpp index 4206a96..ffce578 100644 --- a/src/Collections/List.hpp +++ b/src/Collections/List.hpp @@ -5,7 +5,7 @@ #include #include -namespace ArbUt::Collections { +namespace ArbUt { template class List { private: std::vector _vector; diff --git a/src/Memory/borrowed_ptr.cpp b/src/Memory/borrowed_ptr.cpp deleted file mode 100644 index cf5bc1c..0000000 --- a/src/Memory/borrowed_ptr.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "borrowed_ptr.hpp" diff --git a/src/Memory/borrowed_ptr.hpp b/src/Memory/borrowed_ptr.hpp index fb7e597..fef160b 100644 --- a/src/Memory/borrowed_ptr.hpp +++ b/src/Memory/borrowed_ptr.hpp @@ -3,7 +3,7 @@ #include -namespace ArbUt::Memory { +namespace ArbUt { /// A borrowed pointer is used to indicate a pointer that is not owned by an object, but instead borrowed from /// another owning object that is assumed to always be kept alive during the entire lifetime of the borrowing /// object. diff --git a/tests/DictionaryTests.cpp b/tests/DictionaryTests.cpp index ce9b661..b8cb2f4 100644 --- a/tests/DictionaryTests.cpp +++ b/tests/DictionaryTests.cpp @@ -1,7 +1,7 @@ #ifdef TESTS_BUILD #include "../extern/catch.hpp" #include "../src/Collections/Dictionary.hpp" -using namespace ArbUt::Collections; +using namespace ArbUt; TEST_CASE("Create Dictionary, insert values", "[Utilities]") { auto dic = Dictionary(5); diff --git a/tests/ListTests.cpp b/tests/ListTests.cpp index f9ecfa4..68a31ff 100644 --- a/tests/ListTests.cpp +++ b/tests/ListTests.cpp @@ -1,7 +1,7 @@ #ifdef TESTS_BUILD #include "../extern/catch.hpp" #include "../src/Collections/List.hpp" -using namespace ArbUt::Collections; +using namespace ArbUt; TEST_CASE("Create List, insert values", "[Utilities]") { auto ls = List();