aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-12-12 21:43:34 +0800
committerChristian Parpart <christian@ethereum.org>2018-12-19 18:21:45 +0800
commitd10bae245ed441314c3bd6ecc74b2a1f3d060d12 (patch)
tree1c93d817c44d86d5d3c8ee5c79d04196de289132 /libsolidity
parent678a95f6e3bbd9f1c4914151c0178847348de970 (diff)
downloaddexon-solidity-d10bae245ed441314c3bd6ecc74b2a1f3d060d12.tar.gz
dexon-solidity-d10bae245ed441314c3bd6ecc74b2a1f3d060d12.tar.zst
dexon-solidity-d10bae245ed441314c3bd6ecc74b2a1f3d060d12.zip
liblangutil: SourceLocation to default initialize data members (w/o the use of ctor)
See: http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c45-dont-define-a-default-constructor-that-only-initializes-data-members-use-in-class-member-initializers-instead
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/parsing/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index bcb28988..5b9c309a 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -46,7 +46,7 @@ class Parser::ASTNodeFactory
{
public:
explicit ASTNodeFactory(Parser const& _parser):
- m_parser(_parser), m_location(_parser.position(), -1, _parser.source()) {}
+ m_parser(_parser), m_location{_parser.position(), -1, _parser.source()} {}
ASTNodeFactory(Parser const& _parser, ASTPointer<ASTNode> const& _childNode):
m_parser(_parser), m_location(_childNode->location()) {}