aboutsummaryrefslogtreecommitdiffstats
path: root/solc/CommandLineInterface.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-10-18 19:34:29 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-10-18 19:55:12 +0800
commit7186e142b8ea546d98dc8ddb630da47362be8b0a (patch)
treefe387b3fe8600a88435b99047604f267a334e098 /solc/CommandLineInterface.cpp
parentf67d34e4ec379aeed3ee2c05227a228c748b4d9d (diff)
downloaddexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.tar.gz
dexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.tar.zst
dexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.zip
Rename contentsString to readFileAsString
Diffstat (limited to 'solc/CommandLineInterface.cpp')
-rw-r--r--solc/CommandLineInterface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp
index 1686dc2e..b4c9fe82 100644
--- a/solc/CommandLineInterface.cpp
+++ b/solc/CommandLineInterface.cpp
@@ -424,7 +424,7 @@ void CommandLineInterface::readInputFilesAndConfigureRemappings()
continue;
}
- m_sourceCodes[infile.string()] = dev::contentsString(infile.string());
+ m_sourceCodes[infile.string()] = dev::readFileAsString(infile.string());
path = boost::filesystem::canonical(infile).string();
}
m_allowedDirectories.push_back(boost::filesystem::path(path).remove_filename());
@@ -447,7 +447,7 @@ bool CommandLineInterface::parseLibraryOption(string const& _input)
try
{
if (fs::is_regular_file(_input))
- data = contentsString(_input);
+ data = readFileAsString(_input);
}
catch (fs::filesystem_error const&)
{
@@ -698,7 +698,7 @@ bool CommandLineInterface::processInput()
return ReadCallback::Result{false, "Not a valid file."};
else
{
- auto contents = dev::contentsString(canonicalPath.string());
+ auto contents = dev::readFileAsString(canonicalPath.string());
m_sourceCodes[path.string()] = contents;
return ReadCallback::Result{true, contents};
}