summaryrefslogtreecommitdiff
path: root/core/variant_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/variant_parser.cpp')
-rw-r--r--core/variant_parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp
index 0184de46ee..3a38720a27 100644
--- a/core/variant_parser.cpp
+++ b/core/variant_parser.cpp
@@ -42,6 +42,7 @@ CharType VariantParser::StreamFile::get_char() {
bool VariantParser::StreamFile::is_utf8() const {
return true;
}
+
bool VariantParser::StreamFile::is_eof() const {
return f->eof_reached();
}
@@ -62,6 +63,7 @@ CharType VariantParser::StreamString::get_char() {
bool VariantParser::StreamString::is_utf8() const {
return false;
}
+
bool VariantParser::StreamString::is_eof() const {
return pos > s.length();
}