[Libreoffice-commits] .: dbaccess/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Dec 3 10:32:32 PST 2012


 dbaccess/source/ui/browser/dsbrowserDnD.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 6e27a552b257c042ef1a6a0ec097636362d1760d
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Mon Dec 3 20:21:02 2012 +0200

    WaE: BaseReference::_pInterface may be used uninitialized in this function
    
    Change-Id: Ic9424fd0cac9f2ff91866549b370080a9a88aeea

diff --git a/dbaccess/source/ui/browser/dsbrowserDnD.cxx b/dbaccess/source/ui/browser/dsbrowserDnD.cxx
index a3da512..c177474 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;


More information about the Libreoffice-commits mailing list