aboutsummaryrefslogtreecommitdiffstats
path: root/solc/CommandLineInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'solc/CommandLineInterface.cpp')
-rw-r--r--solc/CommandLineInterface.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp
index 38e778c6..bda1b78a 100644
--- a/solc/CommandLineInterface.cpp
+++ b/solc/CommandLineInterface.cpp
@@ -858,8 +858,7 @@ bool CommandLineInterface::processInput()
m_compiler.reset(new CompilerStack(fileReader));
- auto scannerFromSourceName = [&](string const& _sourceName) -> Scanner const& { return m_compiler->scanner(_sourceName); };
- SourceReferenceFormatter formatter(serr(false), scannerFromSourceName);
+ SourceReferenceFormatter formatter(serr(false));
try
{
@@ -1222,8 +1221,7 @@ bool CommandLineInterface::assemble(
for (auto const& sourceAndStack: assemblyStacks)
{
auto const& stack = sourceAndStack.second;
- auto scannerFromSourceName = [&](string const&) -> Scanner const& { return stack.scanner(); };
- SourceReferenceFormatter formatter(serr(false), scannerFromSourceName);
+ SourceReferenceFormatter formatter(serr(false));
for (auto const& error: stack.errors())
{