mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-08 06:05:17 +00:00
Replace deprecated Vector::Length() with Vector::size() (#5131)
- enable FLATBUFFERS_ATTRIBUTE if C++17 or higher
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
3f388ec747
commit
fcacb46d01
@@ -119,7 +119,7 @@ bool Print<const void *>(const void *val, Type type, int indent,
|
||||
break;
|
||||
case BASE_TYPE_STRING: {
|
||||
auto s = reinterpret_cast<const String *>(val);
|
||||
if (!EscapeString(s->c_str(), s->Length(), _text, opts.allow_non_utf8,
|
||||
if (!EscapeString(s->c_str(), s->size(), _text, opts.allow_non_utf8,
|
||||
opts.natural_utf8)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user