diff options
Diffstat (limited to 'src/core')
-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); } } |