mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-15 15:16:47 +02:00
Integrated part of Patch #2839016, fixing default iterator initialization when using internal map.
This commit is contained in:
@@ -637,6 +637,13 @@ namespace Json {
|
||||
# ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
|
||||
struct IteratorState
|
||||
{
|
||||
IteratorState()
|
||||
: map_(0)
|
||||
, link_(0)
|
||||
, itemIndex_(0)
|
||||
, bucketIndex_(0)
|
||||
{
|
||||
}
|
||||
ValueInternalMap *map_;
|
||||
ValueInternalLink *link_;
|
||||
BucketIndex itemIndex_;
|
||||
@@ -729,6 +736,12 @@ namespace Json {
|
||||
# ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
|
||||
struct IteratorState // Must be a POD
|
||||
{
|
||||
IteratorState()
|
||||
: array_(0)
|
||||
, currentPageIndex_(0)
|
||||
, currentItemIndex_(0)
|
||||
{
|
||||
}
|
||||
ValueInternalArray *array_;
|
||||
Value **currentPageIndex_;
|
||||
unsigned int currentItemIndex_;
|
||||
|
Reference in New Issue
Block a user