Merge pull request #11650 from ethereum/boost-path-in-read-file-as-string

Use `boost::filesystem::path` in `readFileAsString()`
This commit is contained in:
Kamil Śliwak
2021-08-20 19:45:54 +02:00
committed by GitHub
9 changed files with 26 additions and 28 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ ReadCallback::Result FileReader::readFile(string const& _kind, string const& _so
return ReadCallback::Result{false, "Not a valid file."};
// NOTE: we ignore the FileNotFound exception as we manually check above
auto contents = readFileAsString(canonicalPath.string());
auto contents = readFileAsString(canonicalPath);
m_sourceCodes[_sourceUnitName] = contents;
return ReadCallback::Result{true, contents};
}