Kaydet (Commit) d73e5b06 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

More loplugin:cstylecast: dbaccess

Change-Id: Ic59e95a28606d42eca250fb0bed4c5b821b266cf
üst edc19f04
......@@ -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,
......
......@@ -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 );
}
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment