aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-04 01:52:28 +0800
committerChristian <c@ethdev.com>2014-12-04 01:52:28 +0800
commitd2cf34548322598ae067434a61a171bd190fc2c9 (patch)
tree9f89db707b8435f4774aea1115249e076fb37b74 /Scanner.cpp
parent254df50feab6bb4c9f013257591b73919e4013a5 (diff)
downloaddexon-solidity-d2cf34548322598ae067434a61a171bd190fc2c9.tar.gz
dexon-solidity-d2cf34548322598ae067434a61a171bd190fc2c9.tar.zst
dexon-solidity-d2cf34548322598ae067434a61a171bd190fc2c9.zip
Improved external interface for multi-source and multi-contract compilation.
Diffstat (limited to 'Scanner.cpp')
-rw-r--r--Scanner.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/Scanner.cpp b/Scanner.cpp
index e155f550..08bf744d 100644
--- a/Scanner.cpp
+++ b/Scanner.cpp
@@ -143,16 +143,10 @@ private:
}; // end of LiteralScope class
-void Scanner::reset(CharStream const& _source, std::string const& _sourceName)
+void Scanner::reset(CharStream const& _source, string const& _sourceName)
{
m_source = _source;
-
- shared_ptr<string> sourceName = make_shared<string>(_sourceName);
- m_currentToken.location.sourceName = sourceName;
- m_nextToken.location.sourceName = sourceName;
- m_skippedComment.location.sourceName = sourceName;
- m_nextSkippedComment.location.sourceName = sourceName;
-
+ m_sourceName = make_shared<string const>(_sourceName);
reset();
}