diff options
Diffstat (limited to 'Value.h.patch')
-rw-r--r-- | Value.h.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Value.h.patch b/Value.h.patch new file mode 100644 index 000000000000..61fe69cd0883 --- /dev/null +++ b/Value.h.patch @@ -0,0 +1,30 @@ +diff --git a/include/gura/Value.h b/include/gura/Value.h +index f0bc5f7ee..cf22eb4de 100644 +--- a/include/gura/Value.h ++++ b/include/gura/Value.h +@@ -620,7 +620,7 @@ typedef std::deque<Value, Allocator<Value> > ValueDeque; + //----------------------------------------------------------------------------- + // ValueDict + //----------------------------------------------------------------------------- +-class GURA_DLLDECLARE ValueDict : public std::map<Value, Value, Value::LessThan, Allocator<Value> > { ++class GURA_DLLDECLARE ValueDict : public std::map<Value, Value, Value::LessThan, Allocator<std::pair<const Value, Value> > > { + public: + enum StoreMode { + STORE_Strict, +@@ -641,13 +641,13 @@ public: + MemoryPool::Deallocate(pv); + } + public: +- inline ValueDict() : std::map<Value, Value, Value::LessThan, Allocator<Value> >(), ++ inline ValueDict() : std::map<Value, Value, Value::LessThan, Allocator<std::pair<const Value, Value> > >(), + _cntRef(1), _ignoreCaseFlag(false) {} + inline ValueDict(bool ignoreCaseFlag) : +- std::map<Value, Value, Value::LessThan, Allocator<Value> >(ignoreCaseFlag? Value::LessThanIgnoreCase : Value::LessThanCase), ++ std::map<Value, Value, Value::LessThan, Allocator<std::pair<const Value, Value> > >(ignoreCaseFlag? Value::LessThanIgnoreCase : Value::LessThanCase), + _cntRef(1), _ignoreCaseFlag(ignoreCaseFlag) {} + inline ValueDict(const ValueDict &valDict) : +- std::map<Value, Value, Value::LessThan, Allocator<Value> >(valDict), ++ std::map<Value, Value, Value::LessThan, Allocator<std::pair<const Value, Value> > >(valDict), + _cntRef(1), _ignoreCaseFlag(valDict._ignoreCaseFlag) {} + private: + inline ~ValueDict() {} |