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.
2 parents ed8b485 + 58f957c commit c204606Copy full SHA for c204606
include/swift/Basic/OwnedString.h
@@ -35,8 +35,7 @@ class OwnedString {
35
class TextOwner final : public llvm::ThreadSafeRefCountedBase<TextOwner>,
36
public llvm::TrailingObjects<TextOwner, char> {
37
TextOwner(StringRef Text) {
38
- std::uninitialized_copy(Text.begin(), Text.end(),
39
- getTrailingObjects<char>());
+ std::uninitialized_copy(Text.begin(), Text.end(), getTrailingObjects());
40
}
41
42
public:
@@ -50,7 +49,7 @@ class OwnedString {
50
49
/// data.
51
void operator delete(void *p) { ::operator delete(p); }
52
53
- const char *getText() const { return getTrailingObjects<char>(); }
+ const char *getText() const { return getTrailingObjects(); }
54
};
55
56
/// The text this owned string represents
0 commit comments