diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-05 21:33:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-06 10:24:58 +0200 |
commit | 1a26e950ab844f566701cecf32ca812e2e28a8cd (patch) | |
tree | 40e20184b440a32725fb54cd7d94e9d47e137266 /dbaccess/source/ui/browser | |
parent | 65621fc384b190d854df3bcf1629a829cdd29275 (diff) |
loplugin:unusedvariableplus in dbaccess
Change-Id: Id2c2416443b2c9d6d516513ee543542e9681f69a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91728
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/browser')
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index ff34dfa9282b..641dd537a861 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -2164,8 +2164,8 @@ IMPL_LINK(SbaTableQueryBrowser, OnExpandEntry, SvTreeListEntry*, _pParent, bool) if (xWarnings.is()) { - SQLExceptionInfo aWarnings(xWarnings->getWarnings()); #if 0 + SQLExceptionInfo aWarnings(xWarnings->getWarnings()); // Obviously this if test is always false. So to avoid a Clang warning // "use of logical '&&' with constant operand" I put this in #if // 0. Yeah, I know it is fairly likely nobody will ever read this @@ -2962,14 +2962,6 @@ void SbaTableQueryBrowser::unloadAndCleanup( bool _bDisposeConnection ) try { // get the active connection. We need to dispose it. - Reference< XPropertySet > xRowSetProps(getRowSet(),UNO_QUERY); -#if OSL_DEBUG_LEVEL > 0 - { - Reference< XComponent > xComp( - xRowSetProps->getPropertyValue(PROPERTY_ACTIVE_CONNECTION), - css::uno::UNO_QUERY); - } -#endif // unload the form Reference< XLoadable > xLoadable = getLoadable(); |