summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:06:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:06:18 +0100
commitd73e5b066bc575ee97ec388f301806297eeb7f59 (patch)
tree2199d25b05658afc6bd2eda716b61bebf22abd05
parentedc19f0400e7cac09a59291b8ed6c6c13f48468e (diff)
More loplugin:cstylecast: dbaccess
Change-Id: Ic59e95a28606d42eca250fb0bed4c5b821b266cf
-rw-r--r--dbaccess/source/core/inc/SingleSelectQueryComposer.hxx2
-rw-r--r--dbaccess/source/ui/app/AppController.cxx4
-rw-r--r--dbaccess/source/ui/tabledesign/TableRow.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx b/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx
index fbdffabc2090..d17add7850ea 100644
--- a/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx
+++ b/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx
@@ -66,7 +66,7 @@ namespace dbaccess
SQLPartCount
};
- static void incSQLPart( SQLPart& e ) { e = (SQLPart)(1 + static_cast<size_t>(e)); }
+ static void incSQLPart( SQLPart& e ) { e = static_cast<SQLPart>(1 + static_cast<size_t>(e)); }
enum EColumnType
{
SelectColumns = 0,
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx
index c589a2a8803c..ff5cbd4a9cef 100644
--- a/dbaccess/source/ui/app/AppController.cxx
+++ b/dbaccess/source/ui/app/AppController.cxx
@@ -1871,14 +1871,14 @@ Reference< XComponent > OApplicationController::openElementWithArguments( const
IMPL_LINK( OApplicationController, OnSelectContainer, void*, _pType, void )
{
- ElementType eType = (ElementType)reinterpret_cast< sal_IntPtr >( _pType );
+ ElementType eType = static_cast<ElementType>(reinterpret_cast< sal_IntPtr >( _pType ));
if (getContainer())
getContainer()->selectContainer(eType);
}
IMPL_LINK( OApplicationController, OnCreateWithPilot, void*, _pType, void )
{
- ElementType eType = (ElementType)reinterpret_cast< sal_IntPtr >( _pType );
+ ElementType eType = static_cast<ElementType>(reinterpret_cast< sal_IntPtr >( _pType ));
newElementWithPilot( eType );
}
diff --git a/dbaccess/source/ui/tabledesign/TableRow.cxx b/dbaccess/source/ui/tabledesign/TableRow.cxx
index 3d66eae034de..1b52a530bb84 100644
--- a/dbaccess/source/ui/tabledesign/TableRow.cxx
+++ b/dbaccess/source/ui/tabledesign/TableRow.cxx
@@ -127,7 +127,7 @@ namespace dbaui
_rStr.WriteInt32( pFieldDesc->GetScale() );
_rStr.WriteInt32( pFieldDesc->GetIsNullable() );
_rStr.WriteInt32( pFieldDesc->GetFormatKey() );
- _rStr.WriteInt32( (sal_Int32)pFieldDesc->GetHorJustify() );
+ _rStr.WriteInt32( static_cast<sal_Int32>(pFieldDesc->GetHorJustify()) );
_rStr.WriteInt32( pFieldDesc->IsAutoIncrement() ? 1 : 0 );
_rStr.WriteInt32( pFieldDesc->IsPrimaryKey() ? 1 : 0 );
_rStr.WriteInt32( pFieldDesc->IsCurrency() ? 1 : 0 );
@@ -179,7 +179,7 @@ namespace dbaui
_rStr.ReadInt32( nValue );
pFieldDesc->SetFormatKey(nValue);
_rStr.ReadInt32( nValue );
- pFieldDesc->SetHorJustify((SvxCellHorJustify)nValue);
+ pFieldDesc->SetHorJustify(static_cast<SvxCellHorJustify>(nValue));
_rStr.ReadInt32( nValue );
pFieldDesc->SetAutoIncrement(nValue != 0);