diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-06-12 22:54:20 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-06-12 22:54:20 +0200 |
commit | 3222f7b9933788a34aaa639dbae05b54e188adba (patch) | |
tree | 0a45a707026b7bcbbd6fd82b7bf79f09dbb5680b | |
parent | 4e5b78d6a54fa7fac1c6e09401b2e05fa5c06579 (diff) |
cppcheck: reduce scope
Change-Id: Icd0c258e83631de2356503c725139fac2035fb0b
-rw-r--r-- | connectivity/source/drivers/ado/AConnection.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/ado/AConnection.cxx b/connectivity/source/drivers/ado/AConnection.cxx index ee00d3adf862..c70f9256df12 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, |