From 490ae91796c9292e2f42859ef63a3fcc93bae916 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 23 Apr 2014 19:29:47 +0100 Subject: coverity#708563 Uninitialized scalar field Change-Id: Iacca1f92f9a8a6bd3b016775c5e59209995bb741 --- ucb/source/ucp/file/shell.cxx | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'ucb/source') diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx index 878c91f7e44f..906278e8ff11 100644 --- a/ucb/source/ucp/file/shell.cxx +++ b/ucb/source/ucp/file/shell.cxx @@ -107,27 +107,20 @@ shell::UnqPathData& shell::UnqPathData::operator=( UnqPathData& a ) shell::UnqPathData::~UnqPathData() { - if( properties ) - delete properties; - if( notifier ) - delete notifier; + delete properties; + delete notifier; } - - - - - - - - shell::MyProperty::MyProperty( const OUString& __PropertyName ) : PropertyName( __PropertyName ) + , Handle(-1) + , isNative(false) + , State(beans::PropertyState_AMBIGUOUS_VALUE) + , Attributes(0) { // empty } - shell::MyProperty::MyProperty( const sal_Bool& __isNative, const OUString& __PropertyName, const sal_Int32& __Handle, -- cgit