Util: Add constructor Value(Type)

This commit is contained in:
Riyyi
2022-06-28 16:25:19 +02:00
parent 95e0ddf49a
commit 4a7ed92519
2 changed files with 40 additions and 5 deletions
+2
View File
@@ -37,6 +37,7 @@ public:
// Assignment operator
Value& operator=(const Value& other);
Value(Type type);
Value(bool value);
Value(int value);
Value(double value);
@@ -73,6 +74,7 @@ public:
const Object& asObject() const { return *m_value.asObject; }
private:
void create();
void clear();
void copyFrom(const Value& other);