diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-12-03 20:21:02 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-12-03 20:21:33 +0200 |
commit | 6e27a552b257c042ef1a6a0ec097636362d1760d (patch) | |
tree | e9d37821a32ad1a0fac83de100289d41dd3b684f | |
parent | 0ec762f00cf5dfbbbd73b55059ac832cc251c73b (diff) |
WaE: BaseReference::_pInterface may be used uninitialized in this function
Change-Id: Ic9424fd0cac9f2ff91866549b370080a9a88aeea
-rw-r--r-- | dbaccess/source/ui/browser/dsbrowserDnD.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbaccess/source/ui/browser/dsbrowserDnD.cxx b/dbaccess/source/ui/browser/dsbrowserDnD.cxx index a3da51223fa6..c177474fa7a9 100644 --- a/dbaccess/source/ui/browser/dsbrowserDnD.cxx +++ b/dbaccess/source/ui/browser/dsbrowserDnD.cxx @@ -109,7 +109,8 @@ namespace dbaui if ( eEntryType == etTableContainer && ensureConnection( pHitEntry, xConnection ) && xConnection.is() ) { Reference<XChild> xChild(xConnection,UNO_QUERY); - Reference<XStorable> xStore(xChild.is() ? getDataSourceOrModel(xChild->getParent()) : Reference<XInterface>(),UNO_QUERY); + Reference<XStorable> xStore; + xStore = Reference<XStorable>( xChild.is() ? getDataSourceOrModel(xChild->getParent()) : Reference<XInterface>(),UNO_QUERY ); // check for the concrete type if ( xStore.is() && !xStore->isReadonly() && ::std::find_if(_rFlavors.begin(),_rFlavors.end(),TAppSupportedSotFunctor(E_TABLE,sal_True)) != _rFlavors.end()) return DND_ACTION_COPY; |