From 58c62d8ad90d8296737a2f6d70d89f3adf9de714 Mon Sep 17 00:00:00 2001 From: Martijn Otto Date: Tue, 24 May 2016 17:20:58 +0200 Subject: Don't use initializer lists for converting values --- include/class.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/class.h b/include/class.h index 26cc610..a284ade 100644 --- a/include/class.h +++ b/include/class.h @@ -462,7 +462,7 @@ private: T *obj = (T *)base; // retrieve the casted value and convert it if necessary - Value result{ obj->__toString() }; + Value result(obj->__toString()); result.setType(Type::String); // return the converted result @@ -480,7 +480,7 @@ private: T *obj = (T *)base; // retrieve the casted value and convert it if necessary - Value result{ obj->__toInteger() }; + Value result(obj->__toInteger()); result.setType(Type::Numeric); // return the converted result @@ -498,7 +498,7 @@ private: T *obj = (T *)base; // retrieve the casted value and convert it if necessary - Value result{ obj->__toFloat() }; + Value result(obj->__toFloat()); result.setType(Type::Float); // return the converted result @@ -516,7 +516,7 @@ private: T *obj = (T *)base; // retrieve the casted value and convert it if necessary - Value result{ obj->__toBool() }; + Value result(obj->__toBool()); result.setType(Type::Bool); // return the converted result -- cgit v1.2.3