diff options
author | VoR0220 <rj@erisindustries.com> | 2017-01-10 21:15:48 +0800 |
---|---|---|
committer | VoR0220 <rj@erisindustries.com> | 2017-01-10 21:17:11 +0800 |
commit | 8ace851831f63035174ae086bb415a0d2efb8277 (patch) | |
tree | 286109f416818528e230502f1b92543eba4ec55a /libsolidity/interface/CompilerStack.cpp | |
parent | 79dbd40096006eac2861dd86dd22fd0c9ab55c6c (diff) | |
download | dexon-solidity-8ace851831f63035174ae086bb415a0d2efb8277.tar.gz dexon-solidity-8ace851831f63035174ae086bb415a0d2efb8277.tar.zst dexon-solidity-8ace851831f63035174ae086bb415a0d2efb8277.zip |
much smaller helper function
Signed-off-by: VoR0220 <rj@erisindustries.com>
Diffstat (limited to 'libsolidity/interface/CompilerStack.cpp')
-rw-r--r-- | libsolidity/interface/CompilerStack.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index 1a95f5a6..094360a3 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -515,10 +515,8 @@ string CompilerStack::applyRemapping(string const& _path, string const& _context for (auto const& redir: m_remappings) { - filepath redirContext(redir.context); - filepath redirPrefix(redir.prefix); - string contextFileString = redirContext.generic_string(); - string prefixFileString = redirPrefix.generic_string(); + string contextFileString = sanitizePath(redir.context); + string prefixFileString = sanitizePath(redir.prefix); // Skip if there is a prefix collision and the current context is closer if (longestContext > 0 && contextFileString.length() < longestContext) continue; |