mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Move StringRef's impl details to anonymous namespace
This commit is contained in:
parent
d09fe4459d
commit
484eee973c
@ -20,12 +20,15 @@
|
|||||||
|
|
||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
namespace {
|
||||||
|
|
||||||
auto getEmptyStringRef() -> StringRef {
|
auto getEmptyStringRef() -> StringRef {
|
||||||
static StringRef s_emptyStringRef("");
|
static StringRef s_emptyStringRef("");
|
||||||
return s_emptyStringRef;
|
return s_emptyStringRef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
StringRef::StringRef() noexcept
|
StringRef::StringRef() noexcept
|
||||||
: StringRef( getEmptyStringRef() )
|
: StringRef( getEmptyStringRef() )
|
||||||
{}
|
{}
|
||||||
|
Loading…
Reference in New Issue
Block a user