File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,9 @@ class CodeCompletionContext {
90
90
}
91
91
92
92
// / Allocate a string owned by the code completion context.
93
- StringRef copyString (StringRef Str);
93
+ StringRef copyString (StringRef Str) {
94
+ return Str.copy (*CurrentResults.Allocator );
95
+ }
94
96
95
97
// / Sort code completion results in an implementation-defined order
96
98
// / in place.
Original file line number Diff line number Diff line change 15
15
using namespace swift ;
16
16
using namespace swift ::ide;
17
17
18
- StringRef CodeCompletionContext::copyString (StringRef Str) {
19
- return Str.copy (*CurrentResults.Allocator );
20
- }
21
-
22
18
std::vector<CodeCompletionResult *>
23
19
CodeCompletionContext::sortCompletionResults (
24
20
ArrayRef<CodeCompletionResult *> Results) {
You can’t perform that action at this time.
0 commit comments