summaryrefslogtreecommitdiffstats
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-05 15:54:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-05 17:49:29 +0100
commit371a91aaae0500f60f73968ff90a3d61e21b6d1d (patch)
tree5e2f0f02bcecc8214bd994f368180cf361c031cf /dbaccess
parentupdate diagnostic ignore (diff)
downloadcore-371a91aaae0500f60f73968ff90a3d61e21b6d1d.tar.gz
core-371a91aaae0500f60f73968ff90a3d61e21b6d1d.zip
Werror=nonnull in SbaXFormAdapter::cancel
ever since commit 38d78d3c30183b11f5b643c147667b1d30325784 Author: Ocke Janssen <oj@openoffice.org> Date: Thu Oct 26 13:46:14 2000 +0000 new datasource browser spotted by new gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 Change-Id: If054b949f4b4f93e785d315ddeb3423b52d1f55b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124759 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/formadapter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/browser/formadapter.cxx b/dbaccess/source/ui/browser/formadapter.cxx
index 4b98babb26c9..a1e9b1f31ecb 100644
--- a/dbaccess/source/ui/browser/formadapter.cxx
+++ b/dbaccess/source/ui/browser/formadapter.cxx
@@ -1305,7 +1305,7 @@ IMPLEMENT_PROPERTY_LISTENER_ADMINISTRATION(SbaXFormAdapter, VetoableChangeListen
void SAL_CALL SbaXFormAdapter::cancel()
{
Reference< css::util::XCancellable > xCancel(m_xMainForm, UNO_QUERY);
- if (xCancel.is())
+ if (!xCancel.is())
return;
xCancel->cancel();
}