improved const correctness (#321)

This commit is contained in:
Juho Lauri
2019-10-02 21:25:28 +03:00
committed by Daniel Lemire
parent de8df0a05f
commit cf9dbe583d
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ void ParsedJson::init() {
}
WARN_UNUSED
bool ParsedJson::print_json(std::ostream &os) {
bool ParsedJson::print_json(std::ostream &os) const {
if (!valid) {
return false;
}
@@ -241,7 +241,7 @@ bool ParsedJson::print_json(std::ostream &os) {
}
WARN_UNUSED
bool ParsedJson::dump_raw_tape(std::ostream &os) {
bool ParsedJson::dump_raw_tape(std::ostream &os) const {
if (!valid) {
return false;
}