From 2d737cc401a679f6850679b2c8469ba471d01fb1 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 31 Mar 2014 21:16:07 +0100 Subject: coverity#707886 Uninitialized scalar field Change-Id: Iefcdcf992f5e25643030ab94e64bd06f9fe7c7e7 --- framework/source/uielement/uicommanddescription.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'framework') diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx index 8d868574e0de..de2db99c284f 100644 --- a/framework/source/uielement/uicommanddescription.cxx +++ b/framework/source/uielement/uicommanddescription.cxx @@ -602,10 +602,11 @@ void SAL_CALL ConfigurationAccess_UICommand::disposing( const EventObject& aEven } } -UICommandDescription::UICommandDescription( const Reference< XComponentContext >& rxContext ) : - UICommandDescription_BASE(m_aMutex), - m_aPrivateResourceURL( PRIVATE_RESOURCE_URL ), - m_xContext( rxContext ) +UICommandDescription::UICommandDescription(const Reference< XComponentContext >& rxContext) + : UICommandDescription_BASE(m_aMutex) + , m_bConfigRead(false) + , m_aPrivateResourceURL(PRIVATE_RESOURCE_URL) + , m_xContext(rxContext) { Reference< XNameAccess > xEmpty; OUString aGenericUICommand( "GenericCommands" ); @@ -618,6 +619,7 @@ UICommandDescription::UICommandDescription( const Reference< XComponentContext > if ( pIter != m_aUICommandsHashMap.end() ) pIter->second = m_xGenericUICommands; } + UICommandDescription::UICommandDescription(const Reference< XComponentContext >& rxContext, bool) : UICommandDescription_BASE(m_aMutex) , m_bConfigRead(false) -- cgit