aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-06-20 23:04:22 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-06-20 23:04:22 +0800
commit0a632011be455d108eebc8a338346cfa2d40e527 (patch)
tree740cfdd1450381d83993c5607e3ae24a6e5658ef /libsolidity
parentdcee8e11adba5382d40a25b4e61b5b364d27ecb2 (diff)
downloaddexon-solidity-0a632011be455d108eebc8a338346cfa2d40e527.tar.gz
dexon-solidity-0a632011be455d108eebc8a338346cfa2d40e527.tar.zst
dexon-solidity-0a632011be455d108eebc8a338346cfa2d40e527.zip
CompilerStack absolutePath/sanitizePath can be made static
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/interface/CompilerStack.cpp2
-rw-r--r--libsolidity/interface/CompilerStack.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp
index a3646a3d..a8668336 100644
--- a/libsolidity/interface/CompilerStack.cpp
+++ b/libsolidity/interface/CompilerStack.cpp
@@ -669,7 +669,7 @@ void CompilerStack::resolveImports()
swap(m_sourceOrder, sourceOrder);
}
-string CompilerStack::absolutePath(string const& _path, string const& _reference) const
+string CompilerStack::absolutePath(string const& _path, string const& _reference)
{
using path = boost::filesystem::path;
path p(_path);
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h
index 13c9cc7a..018c61ec 100644
--- a/libsolidity/interface/CompilerStack.h
+++ b/libsolidity/interface/CompilerStack.h
@@ -273,9 +273,9 @@ private:
std::string applyRemapping(std::string const& _path, std::string const& _context);
void resolveImports();
/// @returns the absolute path corresponding to @a _path relative to @a _reference.
- std::string absolutePath(std::string const& _path, std::string const& _reference) const;
+ static std::string absolutePath(std::string const& _path, std::string const& _reference);
/// Helper function to return path converted strings.
- std::string sanitizePath(std::string const& _path) const { return boost::filesystem::path(_path).generic_string(); }
+ static std::string sanitizePath(std::string const& _path) { return boost::filesystem::path(_path).generic_string(); }
/// @returns true if the contract is requested to be compiled.
bool isRequestedContract(ContractDefinition const& _contract) const;