From 1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Mon, 31 Aug 2015 18:44:29 +0200 Subject: renamed getter functions --- libsolidity/SourceReferenceFormatter.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libsolidity/SourceReferenceFormatter.cpp') diff --git a/libsolidity/SourceReferenceFormatter.cpp b/libsolidity/SourceReferenceFormatter.cpp index 77805efc..339d5b23 100644 --- a/libsolidity/SourceReferenceFormatter.cpp +++ b/libsolidity/SourceReferenceFormatter.cpp @@ -46,7 +46,7 @@ void SourceReferenceFormatter::printSourceLocation( tie(endLine, endColumn) = _scanner.translatePositionToLineColumn(_location.end); if (startLine == endLine) { - string line = _scanner.getLineAtPosition(_location.start); + string line = _scanner.lineAtPosition(_location.start); _stream << line << endl; for_each( line.cbegin(), @@ -62,7 +62,7 @@ void SourceReferenceFormatter::printSourceLocation( } else _stream << - _scanner.getLineAtPosition(_location.start) << + _scanner.lineAtPosition(_location.start) << endl << string(startColumn, ' ') << "^\n" << @@ -90,12 +90,12 @@ void SourceReferenceFormatter::printExceptionInformation( { SourceLocation const* location = boost::get_error_info(_exception); auto secondarylocation = boost::get_error_info(_exception); - Scanner const* scanner = nullptr; + Scanner const* scannerPtr = nullptr; if (location) { - scanner = &_compiler.getScanner(*location->sourceName); - printSourceName(_stream, *location, *scanner); + scannerPtr = &_compiler.scanner(*location->sourceName); + printSourceName(_stream, *location, *scannerPtr); } _stream << _name; @@ -104,19 +104,19 @@ void SourceReferenceFormatter::printExceptionInformation( if (location) { - scanner = &_compiler.getScanner(*location->sourceName); - printSourceLocation(_stream, *location, *scanner); + scannerPtr = &_compiler.scanner(*location->sourceName); + printSourceLocation(_stream, *location, *scannerPtr); } if (secondarylocation && !secondarylocation->infos.empty()) { for (auto info: secondarylocation->infos) { - scanner = &_compiler.getScanner(*info.second.sourceName); + scannerPtr = &_compiler.scanner(*info.second.sourceName); _stream << info.first << " "; - printSourceName(_stream, info.second, *scanner); + printSourceName(_stream, info.second, *scannerPtr); _stream << endl; - printSourceLocation(_stream, info.second, *scanner); + printSourceLocation(_stream, info.second, *scannerPtr); } _stream << endl; } -- cgit v1.2.3