[Libreoffice-commits] core.git: connectivity/source

Julien Nabet serval2412 at yahoo.fr
Wed Jun 12 13:54:56 PDT 2013


 connectivity/source/drivers/ado/AConnection.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3222f7b9933788a34aaa639dbae05b54e188adba
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Wed Jun 12 22:54:20 2013 +0200

    cppcheck: reduce scope
    
    Change-Id: Icd0c258e83631de2356503c725139fac2035fb0b

diff --git a/connectivity/source/drivers/ado/AConnection.cxx b/connectivity/source/drivers/ado/AConnection.cxx
index ee00d3a..c70f925 100644
--- a/connectivity/source/drivers/ado/AConnection.cxx
+++ b/connectivity/source/drivers/ado/AConnection.cxx
@@ -59,7 +59,6 @@ OConnection::OConnection(ODriver*   _pDriver) throw(SQLException, RuntimeExcepti
     osl_atomic_increment( &m_refCount );
 
     IClassFactory2* pIUnknown   = NULL;
-    IUnknown        *pOuter     = NULL;
     HRESULT         hr;
     hr = CoGetClassObject( ADOS::CLSID_ADOCONNECTION_21,
                           CLSCTX_INPROC_SERVER,
@@ -70,6 +69,7 @@ OConnection::OConnection(ODriver*   _pDriver) throw(SQLException, RuntimeExcepti
     if( !FAILED( hr ) )
     {
         ADOConnection *pCon         = NULL;
+        IUnknown *pOuter     = NULL;
         hr = pIUnknown->CreateInstanceLic(  pOuter,
                                             NULL,
                                             ADOS::IID_ADOCONNECTION_21,


More information about the Libreoffice-commits mailing list