fixed issues reported by Klocwork

This commit is contained in:
Guenter Obiltschnig
2016-09-26 18:15:36 +02:00
parent 075cfeb4cb
commit 7c43cc8ec2

View File

@@ -63,28 +63,32 @@ public:
Nullable(): Nullable():
/// Creates an empty Nullable. /// Creates an empty Nullable.
_value(), _value(),
_isNull(true) _isNull(true),
_null()
{ {
} }
Nullable(const NullType&): Nullable(const NullType&):
/// Creates an empty Nullable. /// Creates an empty Nullable.
_value(), _value(),
_isNull(true) _isNull(true),
_null()
{ {
} }
Nullable(const C& value): Nullable(const C& value):
/// Creates a Nullable with the given value. /// Creates a Nullable with the given value.
_value(value), _value(value),
_isNull(false) _isNull(false),
_null()
{ {
} }
Nullable(const Nullable& other): Nullable(const Nullable& other):
/// Creates a Nullable by copying another one. /// Creates a Nullable by copying another one.
_value(other._value), _value(other._value),
_isNull(other._isNull) _isNull(other._isNull),
_null()
{ {
} }