We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1960739 commit 43eabf1Copy full SHA for 43eabf1
include/swift/Basic/StringExtras.h
@@ -490,7 +490,7 @@ class NullTerminatedStringRef {
490
491
/// Create a null-terminated string, copying \p Str into \p A .
492
template <typename Allocator>
493
- NullTerminatedStringRef(StringRef Str, Allocator &A) : Ref() {
+ NullTerminatedStringRef(StringRef Str, Allocator &A) : Ref("") {
494
if (Str.empty())
495
return;
496
0 commit comments