mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
improved const correctness (#321)
This commit is contained in:
committed by
Daniel Lemire
parent
de8df0a05f
commit
cf9dbe583d
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user