mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use .str() when converting StringRef to std::string in ModuleInterfaceLoader
This commit is contained in:
@@ -243,11 +243,11 @@ private:
|
||||
if (key == "moduleName") {
|
||||
moduleName = val;
|
||||
} else if (key == "modulePath") {
|
||||
result.modulePath = val;
|
||||
result.modulePath = val.str();
|
||||
} else if (key == "docPath") {
|
||||
result.moduleDocPath = val;
|
||||
result.moduleDocPath = val.str();
|
||||
} else if (key == "sourceInfoPath") {
|
||||
result.moduleSourceInfoPath = val;
|
||||
result.moduleSourceInfoPath = val.str();
|
||||
} else {
|
||||
// Being forgiving for future fields.
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user