diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-12-03 14:36:14 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-12-03 14:36:36 +0200 |
commit | 88cc248d0d00bb00d7d686a858044663ad6c9c30 (patch) | |
tree | 362525464e4fc738ec75918de18b049522f939be /package | |
parent | 2a6980107015a30e01873a45f8798b8a20ccfd73 (diff) |
WaE: BaseReference::_pInterface may be used uninitialized in this function
Change-Id: Ia127816f994f7ce6fc7230a0a7dacaa7396ba825
Diffstat (limited to 'package')
-rw-r--r-- | package/source/xstor/ohierarchyholder.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package/source/xstor/ohierarchyholder.cxx b/package/source/xstor/ohierarchyholder.cxx index ff2dc3fdf06f..da4d2310bf87 100644 --- a/package/source/xstor/ohierarchyholder.cxx +++ b/package/source/xstor/ohierarchyholder.cxx @@ -93,7 +93,9 @@ uno::Reference< embed::XExtendedStorageStream > OHierarchyElement_Impl::GetStrea uno::Reference< embed::XExtendedStorageStream > xResult; - uno::Reference< embed::XStorage > xOwnStor = m_xOwnStorage.is() ? m_xOwnStorage + uno::Reference< embed::XStorage > xOwnStor; + + xOwnStor = m_xOwnStorage.is() ? m_xOwnStorage : uno::Reference< embed::XStorage >( m_xWeakOwnStorage.get(), uno::UNO_QUERY ); if ( !xOwnStor.is() ) throw uno::RuntimeException(); @@ -175,7 +177,9 @@ void OHierarchyElement_Impl::RemoveStreamHierarchically( OStringList_Impl& aList uno::Reference< embed::XExtendedStorageStream > xResult; - uno::Reference< embed::XStorage > xOwnStor = m_xOwnStorage.is() ? m_xOwnStorage + uno::Reference< embed::XStorage > xOwnStor; + + xOwnStor = m_xOwnStorage.is() ? m_xOwnStorage : uno::Reference< embed::XStorage >( m_xWeakOwnStorage.get(), uno::UNO_QUERY ); if ( !xOwnStor.is() ) throw uno::RuntimeException(); |