Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Move StringRef's impl details to anonymous namespace

Commit
484eee973c3218b38a86486f804cefb5eac46540
Author
Martin Hořeňovský ·
Parents
d09fe4459d0e

Files · Download .tar.gz

Changes

 include/internal/catch_stringref.cpp | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/include/internal/catch_stringref.cpp b/include/internal/catch_stringref.cpp
index e209cf39..60a522ec 100644
--- a/include/internal/catch_stringref.cpp
+++ b/include/internal/catch_stringref.cpp
@@ -20,11 +20,14 @@
 
 
 namespace Catch {
+     namespace {
 
-    auto getEmptyStringRef() -> StringRef {
-        static StringRef s_emptyStringRef("");
-        return s_emptyStringRef;
-    }
+     auto getEmptyStringRef() -> StringRef {
+         static StringRef s_emptyStringRef("");
+         return s_emptyStringRef;
+     }
+
+     }
 
     StringRef::StringRef() noexcept
     :   StringRef( getEmptyStringRef() )