summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-14 16:11:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-15 14:19:04 +0000
commit367baee6ed2aa6e043333e04724831e095c5fead (patch)
tree70f35795f46b9403c2e27384e4210df9f70703aa /connectivity
parent93732de5c1648215690854a573058d1a299796dd (diff)
Some simplifications, using UNO_QUERY_THROW
Change-Id: I3bfa7b8896c9eb191047edf469749bb7f0128dfd Reviewed-on: https://gerrit.libreoffice.org/34270 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/Tables.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/firebird/Tables.cxx b/connectivity/source/drivers/firebird/Tables.cxx
index 2643a7aa7a0c..bc21f08dac56 100644
--- a/connectivity/source/drivers/firebird/Tables.cxx
+++ b/connectivity/source/drivers/firebird/Tables.cxx
@@ -51,9 +51,9 @@ ObjectType Tables::createObject(const OUString& rName)
if (!xTables.is())
throw RuntimeException();
- uno::Reference< XRow > xRow(xTables,UNO_QUERY);
+ uno::Reference< XRow > xRow(xTables,UNO_QUERY_THROW);
- if (!xRow.is() || !xTables->next())
+ if (!xTables->next())
throw RuntimeException();
ObjectType xRet(new Table(this,