From 7c43cc8ec2c98a8dc284eb69659b1cd2c657add9 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Mon, 26 Sep 2016 18:15:36 +0200 Subject: [PATCH] fixed issues reported by Klocwork --- Foundation/include/Poco/Nullable.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Foundation/include/Poco/Nullable.h b/Foundation/include/Poco/Nullable.h index 78c8ccb65..d00ab15a0 100644 --- a/Foundation/include/Poco/Nullable.h +++ b/Foundation/include/Poco/Nullable.h @@ -63,28 +63,32 @@ public: Nullable(): /// Creates an empty Nullable. _value(), - _isNull(true) + _isNull(true), + _null() { } Nullable(const NullType&): /// Creates an empty Nullable. _value(), - _isNull(true) + _isNull(true), + _null() { } Nullable(const C& value): /// Creates a Nullable with the given value. _value(value), - _isNull(false) + _isNull(false), + _null() { } Nullable(const Nullable& other): /// Creates a Nullable by copying another one. _value(other._value), - _isNull(other._isNull) + _isNull(other._isNull), + _null() { }