Move StringRef's impl details to anonymous namespace
This commit is contained in:
parent
d09fe4459d
commit
484eee973c
1 changed files with 7 additions and 4 deletions
|
@ -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() )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue