diff options
author | chriseth <chris@ethereum.org> | 2018-12-20 01:06:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-20 01:06:13 +0800 |
commit | 1df8f40cd2fd7b47698d847907b8ca7b47eb488d (patch) | |
tree | 5ed5816fe2d1a8a207e750d39884aca7957c8289 /liblangutil/SourceLocation.h | |
parent | c8a2cb62832afb2dc09ccee6fd42c1516dfdb981 (diff) | |
parent | ddf54b21d1d002903624f61173ab4af197f50053 (diff) | |
download | dexon-solidity-1df8f40cd2fd7b47698d847907b8ca7b47eb488d.tar dexon-solidity-1df8f40cd2fd7b47698d847907b8ca7b47eb488d.tar.gz dexon-solidity-1df8f40cd2fd7b47698d847907b8ca7b47eb488d.tar.bz2 dexon-solidity-1df8f40cd2fd7b47698d847907b8ca7b47eb488d.tar.lz dexon-solidity-1df8f40cd2fd7b47698d847907b8ca7b47eb488d.tar.xz dexon-solidity-1df8f40cd2fd7b47698d847907b8ca7b47eb488d.tar.zst dexon-solidity-1df8f40cd2fd7b47698d847907b8ca7b47eb488d.zip |
Merge pull request #5697 from ethereum/develop
Merge develop into release for 0.5.2
Diffstat (limited to 'liblangutil/SourceLocation.h')
-rw-r--r-- | liblangutil/SourceLocation.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/liblangutil/SourceLocation.h b/liblangutil/SourceLocation.h index 2d18a7d1..840891c2 100644 --- a/liblangutil/SourceLocation.h +++ b/liblangutil/SourceLocation.h @@ -38,10 +38,6 @@ namespace langutil */ struct SourceLocation { - SourceLocation(): start(-1), end(-1), source{nullptr} { } - SourceLocation(int _start, int _end, std::shared_ptr<CharStream> _source): - start(_start), end(_end), source{std::move(_source)} { } - bool operator==(SourceLocation const& _other) const { return source.get() == _other.source.get() && start == _other.start && end == _other.end; @@ -53,8 +49,8 @@ struct SourceLocation bool isEmpty() const { return start == -1 && end == -1; } - int start; - int end; + int start = -1; + int end = -1; std::shared_ptr<CharStream> source; }; |