Skip to content

Commit

Permalink
Update jsoncpp
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Aug 6, 2013
1 parent c8f8476 commit ea346f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/json/json.h
Expand Up @@ -824,7 +824,7 @@ namespace Json {

/** \brief Experimental and untested: represents an element of the "path" to access a node.
*/
class PathArgument
class JSON_API PathArgument
{
public:
friend class Path;
Expand Down Expand Up @@ -857,7 +857,7 @@ namespace Json {
* - ".%" => member name is provided as parameter
* - ".[%]" => index is provied as parameter
*/
class Path
class JSON_API Path
{
public:
Path( const std::string &path,
Expand Down Expand Up @@ -1233,9 +1233,10 @@ class DefaultValueArrayAllocator : public ValueArrayAllocator
/** \brief base class for Value iterators.
*
*/
class ValueIteratorBase
class JSON_API ValueIteratorBase
{
public:
typedef std::bidirectional_iterator_tag iterator_category;
typedef unsigned int size_t;
typedef int difference_type;
typedef ValueIteratorBase SelfType;
Expand Down Expand Up @@ -1303,10 +1304,11 @@ class DefaultValueArrayAllocator : public ValueArrayAllocator
/** \brief const iterator for object and array value.
*
*/
class ValueConstIterator : public ValueIteratorBase
class JSON_API ValueConstIterator : public ValueIteratorBase
{
friend class Value;
public:
typedef const Value value_type;
typedef unsigned int size_t;
typedef int difference_type;
typedef const Value &reference;
Expand Down Expand Up @@ -1361,10 +1363,11 @@ class DefaultValueArrayAllocator : public ValueArrayAllocator

/** \brief Iterator for object and array value.
*/
class ValueIterator : public ValueIteratorBase
class JSON_API ValueIterator : public ValueIteratorBase
{
friend class Value;
public:
typedef Value value_type;
typedef unsigned int size_t;
typedef int difference_type;
typedef Value &reference;
Expand Down
4 changes: 4 additions & 0 deletions src/json/jsoncpp.cpp
Expand Up @@ -1411,6 +1411,7 @@ ValueIteratorBase::copy( const SelfType &other )
{
#ifndef JSON_VALUE_USE_INTERNAL_MAP
current_ = other.current_;
isNull_ = other.isNull_;
#else
if ( isArray_ )
iterator_.array_ = other.iterator_.array_;
Expand Down Expand Up @@ -2045,7 +2046,10 @@ Value::Value( const Value &other )
allocated_ = true;
}
else
{
value_.string_ = 0;
allocated_ = false;
}
break;
#ifndef JSON_VALUE_USE_INTERNAL_MAP
case arrayValue:
Expand Down

0 comments on commit ea346f4

Please sign in to comment.