diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-12-02 16:21:23 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-12-02 16:21:23 +0100 |
commit | 80c32c744807afa81178f45af1867fb7c3366c81 (patch) | |
tree | 4795722faafb20346a46bd20a136a3bd013e7b5f /src/core/variant | |
parent | 65778eb19e1b4d7d5d145bb2167df0eb01935da7 (diff) |
expanded unit test and fixed further stack overflow caused by missuse of braced initializer list
Diffstat (limited to 'src/core/variant')
-rw-r--r-- | src/core/variant/Variant.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/variant/Variant.hpp b/src/core/variant/Variant.hpp index 6b5d03f..f438d3e 100644 --- a/src/core/variant/Variant.hpp +++ b/src/core/variant/Variant.hpp @@ -168,13 +168,13 @@ private: doubleVal = v.doubleVal; break; case Type::STRING: - ptrVal = new stringType{v.asString()}; + ptrVal = new stringType(v.asString()); break; case Type::ARRAY: - ptrVal = new arrayType{v.asArray()}; + ptrVal = new arrayType(v.asArray()); break; case Type::MAP: - ptrVal = new mapType{v.asMap()}; + ptrVal = new mapType(v.asMap()); break; } } @@ -585,7 +585,7 @@ public: } else { destroy(); type = Type::STRING; - ptrVal = new stringType{s}; + ptrVal = new stringType(s); } } |