Skip to content

Commit 2d036cf

Browse files
committed
fix: const
1 parent 2940701 commit 2d036cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp_src/jsonparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class StreamingJsonParser {
121121
~StreamingJsonParser() = default;
122122

123123
void consume(const std::string& buffer) {
124-
for (char c : buffer) {
124+
for (const char c : buffer) {
125125
if (isWhitespace(c) && state != IN_KEY && state != IN_VALUE) {
126126
continue;
127127
}

0 commit comments

Comments
 (0)