summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/hsqldb
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-08 19:36:22 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-09 03:24:35 +0000
commit54cbb57d4c3ccf1e1c8455ac413183edbdeb3416 (patch)
tree989caae10d27ec9907b298af288ad2a4ef175622 /connectivity/source/drivers/hsqldb
parent141469eb831c054d6f4b56fcaa50a03e52429f11 (diff)
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: Ib35eb591534c3f23adc3cb7b7fa9696dc5cbeabf Reviewed-on: https://gerrit.libreoffice.org/13383 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'connectivity/source/drivers/hsqldb')
-rw-r--r--connectivity/source/drivers/hsqldb/HDriver.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx
index 43ee0c1b45e6..1c8b443e371d 100644
--- a/connectivity/source/drivers/hsqldb/HDriver.cxx
+++ b/connectivity/source/drivers/hsqldb/HDriver.cxx
@@ -354,12 +354,11 @@ namespace connectivity
if ( xOrig.is() )
{
- OMetaConnection* pMetaConnection = NULL;
// now we have to set the URL to get the correct answer for metadata()->getURL()
Reference< XUnoTunnel> xTunnel(xOrig,UNO_QUERY);
if ( xTunnel.is() )
{
- pMetaConnection = reinterpret_cast<OMetaConnection*>(xTunnel->getSomething( OMetaConnection::getUnoTunnelImplementationId() ));
+ OMetaConnection* pMetaConnection = reinterpret_cast<OMetaConnection*>(xTunnel->getSomething( OMetaConnection::getUnoTunnelImplementationId() ));
if ( pMetaConnection )
pMetaConnection->setURL(url);
}