[Libreoffice-commits] core.git: dbaccess/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 8 09:28:07 UTC 2021
dbaccess/source/ui/misc/UITools.cxx | 3 ---
1 file changed, 3 deletions(-)
New commits:
commit 7d9781367133f8d79bbd96e638be51119702930a
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jun 8 10:01:58 2021 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Jun 8 11:27:29 2021 +0200
-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 at redhat.com>
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& )
More information about the Libreoffice-commits
mailing list