From 23579ad5a15377a4832163290b00ab23f504ba14 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Sun, 27 Jul 2014 16:48:31 +0200 Subject: update coding style --- include/object.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/object.h b/include/object.h index 47935d7..6350259 100644 --- a/include/object.h +++ b/include/object.h @@ -41,13 +41,21 @@ public: */ Object(const Value &value) : Value() { - // string types are instantiated - if (value.isString()) { + // when a string is passed in, we are going to make a new instance of the + // passed in string + if (value.isString()) + { + // instantiate the object instantiate(value); + + // and call the __construct method call("__construct"); } - // otherwise copy the other object - else operator=(value); + else + { + // this simply copies the other object + operator=(value); + } } /** -- cgit v1.2.3