@@ -38,15 +38,15 @@ class Property
3838 public:
3939
4040 /* ! \brief Constructs a new property with a string value */
41- Property (std::string value) : stringValue(value), longValue(0 ), doubleValue(0 ), ptrValue(0 ) {}
41+ explicit Property (const std::string& value) : stringValue(value), longValue(0 ), doubleValue(0 ), ptrValue(0 ) {}
4242 /* ! \brief Constructs a new property with a string value (moving the value) */
43- Property (std::string&& value) : stringValue(value), longValue(0 ), doubleValue(0 ), ptrValue(0 ) {}
43+ explicit Property (std::string&& value) : stringValue(value), longValue(0 ), doubleValue(0 ), ptrValue(0 ) {}
4444 /* ! \brief Constructs a new property with a long value */
45- Property (long value) : longValue(value), doubleValue(0 ), ptrValue(0 ) {}
45+ explicit Property (long value) : longValue(value), doubleValue(0 ), ptrValue(0 ) {}
4646 /* ! \brief Constructs a new property with a double value */
47- Property (double value) : longValue(0 ), doubleValue(value), ptrValue(0 ) {}
47+ explicit Property (double value) : longValue(0 ), doubleValue(value), ptrValue(0 ) {}
4848 /* ! \brief Constructs a new property with a void* value */
49- Property (void * value) : longValue(0 ), doubleValue(0 ), ptrValue(value) {}
49+ explicit Property (void * value) : longValue(0 ), doubleValue(0 ), ptrValue(value) {}
5050
5151 /* ! \brief Retrieves the string value of the property. If no string value was set, returns an empty string object */
5252 std::string& getStringValue () { return stringValue; }
0 commit comments