summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/dbase/DIndexes.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-01 16:13:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-01 21:40:49 +0200
commit4a779c4d01b0482457e189af991b3b1b7c1a47a9 (patch)
treed55d15b81d0c36c3f49e4ac24cfcebc2f1d41a05 /connectivity/source/drivers/dbase/DIndexes.cxx
parent52f69445c55c9af8ad97bee6da335b4592d56d4d (diff)
loplugin:returnconstant in connectivity
Change-Id: I291bebbd644095d6632841abe56c4f28b84e228d Reviewed-on: https://gerrit.libreoffice.org/58427 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/drivers/dbase/DIndexes.cxx')
-rw-r--r--connectivity/source/drivers/dbase/DIndexes.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/drivers/dbase/DIndexes.cxx b/connectivity/source/drivers/dbase/DIndexes.cxx
index 541eb3287634..416e05eaa576 100644
--- a/connectivity/source/drivers/dbase/DIndexes.cxx
+++ b/connectivity/source/drivers/dbase/DIndexes.cxx
@@ -95,8 +95,9 @@ sdbcx::ObjectType ODbaseIndexes::appendObject( const OUString& _rForName, const
if(xTunnel.is())
{
ODbaseIndex* pIndex = reinterpret_cast< ODbaseIndex* >( xTunnel->getSomething(ODbaseIndex::getUnoTunnelImplementationId()) );
- if(!pIndex || !pIndex->CreateImpl())
+ if(!pIndex)
throw SQLException();
+ pIndex->CreateImpl();
}
return createObject( _rForName );