Use .str() when converting StringRef to std::string in ModuleInterfaceLoader

This commit is contained in:
Artem Chikin
2020-07-29 08:47:26 -07:00
parent 6364a99123
commit fd96bbd054

View File

@@ -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;