diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-17 08:14:15 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 17:51:46 +0800 |
commit | e2cfc9ee92158169b5dd058074f25d67959e9875 (patch) | |
tree | 90cb281b48f95bdcc9904ed12def22bffcb88fb7 /liblll | |
parent | c94b1f81730c27480cb5813a7a909511613c14c5 (diff) | |
download | dexon-solidity-e2cfc9ee92158169b5dd058074f25d67959e9875.tar dexon-solidity-e2cfc9ee92158169b5dd058074f25d67959e9875.tar.gz dexon-solidity-e2cfc9ee92158169b5dd058074f25d67959e9875.tar.bz2 dexon-solidity-e2cfc9ee92158169b5dd058074f25d67959e9875.tar.lz dexon-solidity-e2cfc9ee92158169b5dd058074f25d67959e9875.tar.xz dexon-solidity-e2cfc9ee92158169b5dd058074f25d67959e9875.tar.zst dexon-solidity-e2cfc9ee92158169b5dd058074f25d67959e9875.zip |
Mark a lot of functions const (where possible)
Diffstat (limited to 'liblll')
-rw-r--r-- | liblll/CompilerState.cpp | 2 | ||||
-rw-r--r-- | liblll/CompilerState.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/liblll/CompilerState.cpp b/liblll/CompilerState.cpp index 9701e16b..d53dec7e 100644 --- a/liblll/CompilerState.cpp +++ b/liblll/CompilerState.cpp @@ -30,7 +30,7 @@ CompilerState::CompilerState() { } -CodeFragment const& CompilerState::getDef(std::string const& _s) +CodeFragment const& CompilerState::getDef(std::string const& _s) const { if (defs.count(_s)) return defs.at(_s); diff --git a/liblll/CompilerState.h b/liblll/CompilerState.h index c29d3b7d..96a0246d 100644 --- a/liblll/CompilerState.h +++ b/liblll/CompilerState.h @@ -40,7 +40,7 @@ struct CompilerState { CompilerState(); - CodeFragment const& getDef(std::string const& _s); + CodeFragment const& getDef(std::string const& _s) const; void populateStandard(); unsigned stackSize = 128; |