diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-06-08 10:01:58 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-06-08 11:27:29 +0200 |
commit | 7d9781367133f8d79bbd96e638be51119702930a (patch) | |
tree | 29e97ae15b77d3fd38a7874eb2589638e890381e | |
parent | 16eda7db38e978a178b161cff7715ee4a32f1493 (diff) |
-Werror,-Wunused-but-set-variable (Clang 13 trunk)
...ever since the code's introduction in
59560e4c13de5787a586ea643f6e58371ecf4c14 "INTEGRATION: CWS dba22"
Change-Id: Ic8acc06c85a3f82d24467cb403250df095c6b869
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116812
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | dbaccess/source/ui/misc/UITools.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx index 03ad7038fc75..08b6bc5f2af0 100644 --- a/dbaccess/source/ui/misc/UITools.cxx +++ b/dbaccess/source/ui/misc/UITools.cxx @@ -195,7 +195,6 @@ Reference< XDataSource > getDataSourceByName( const OUString& _rDataSourceName, Reference< XDatabaseContext > xDatabaseContext = DatabaseContext::create(_rxContext); Reference< XDataSource > xDatasource; - Any aError; SQLExceptionInfo aSQLError; try { @@ -218,8 +217,6 @@ Reference< XDataSource > getDataSourceByName( const OUString& _rDataSourceName, else { aSQLError = SQLExceptionInfo( e.TargetException ); - if ( !aSQLError.isValid() ) - aError = e.TargetException; } } catch( const Exception& ) |