1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-04-02 08:34:47 +02:00

Move StringRef's impl details to anonymous namespace

This commit is contained in:
Martin Hořeňovský 2017-11-13 12:41:04 +01:00
parent d09fe4459d
commit 484eee973c

@ -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() )