summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/sqlmessage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/dlg/sqlmessage.cxx')
-rw-r--r--dbaccess/source/ui/dlg/sqlmessage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/sqlmessage.cxx b/dbaccess/source/ui/dlg/sqlmessage.cxx
index 3bcb10c4ebcd..f585b6fd1276 100644
--- a/dbaccess/source/ui/dlg/sqlmessage.cxx
+++ b/dbaccess/source/ui/dlg/sqlmessage.cxx
@@ -212,7 +212,7 @@ namespace
SQLExceptionInfo aCurrentElement;
iter.next( aCurrentElement );
- const SQLException* pCurrentError = static_cast<const SQLException*>(aCurrentElement);
+ const SQLException* pCurrentError = aCurrentElement;
OSL_ENSURE( pCurrentError, "lcl_buildExceptionChain: iterator failure!" );
// hasMoreElements should not have returned <TRUE/> in this case
@@ -238,7 +238,7 @@ namespace
if ( aCurrentElement.getType() == SQLExceptionInfo::TYPE::SQLContext )
{
- const SQLContext* pContext = static_cast<const SQLContext*>(aCurrentElement);
+ const SQLContext* pContext = aCurrentElement;
if ( !pContext->Details.isEmpty() )
{
ExceptionDisplayInfo aSubInfo( aCurrentElement.getType() );