summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-06-12 22:54:20 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-06-12 22:54:20 +0200
commit3222f7b9933788a34aaa639dbae05b54e188adba (patch)
tree0a45a707026b7bcbbd6fd82b7bf79f09dbb5680b /connectivity
parent4e5b78d6a54fa7fac1c6e09401b2e05fa5c06579 (diff)
cppcheck: reduce scope
Change-Id: Icd0c258e83631de2356503c725139fac2035fb0b
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/ado/AConnection.cxx2
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,