It appears that Qt uses macros for common terms like slots, signals and so forth. (#1425)

This commit is contained in:
Daniel Lemire 2021-02-01 11:31:29 -05:00 committed by GitHub
parent a509e04f9b
commit 6f61ed1477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ inline array::iterator array::end() const noexcept {
inline size_t array::size() const noexcept {
return tape.scope_count();
}
inline size_t array::slots() const noexcept {
inline size_t array::number_of_slots() const noexcept {
return tape.matching_brace_index() - tape.json_index;
}
inline simdjson_result<element> array::at_pointer(std::string_view json_pointer) const noexcept {

View File

@ -95,7 +95,7 @@ public:
* to figure out the total size of an array (including its children,
* recursively) if you know its structure ahead of time.
**/
inline size_t slots() const noexcept;
inline size_t number_of_slots() const noexcept;
/**
* Get the value associated with the given JSON pointer. We use the RFC 6901
* https://tools.ietf.org/html/rfc6901 standard, interpreting the current node