diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:03:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:03:36 +0100 |
commit | e1bdc38a0b8861281f4111fa78b39f76be6e14e7 (patch) | |
tree | ee847ac020c48c91148072603dd1706bb719fd83 /sd/source/ui/dlg/dlgfield.cxx | |
parent | 5cd41952cdb1c3c14cd48858d382d8bd95f602ff (diff) |
More loplugin:cstylecast: sd
Change-Id: I77ed2793aad62377ec6fc2513e06e2371c1c77ad
Diffstat (limited to 'sd/source/ui/dlg/dlgfield.cxx')
-rw-r--r-- | sd/source/ui/dlg/dlgfield.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/dlg/dlgfield.cxx b/sd/source/ui/dlg/dlgfield.cxx index dd07c3e6a3da..dcb9799c3283 100644 --- a/sd/source/ui/dlg/dlgfield.cxx +++ b/sd/source/ui/dlg/dlgfield.cxx @@ -91,7 +91,7 @@ SvxFieldData* SdModifyFieldDlg::GetField() else eType = SvxDateType::Var; - eFormat = (SvxDateFormat) ( m_pLbFormat->GetSelectedEntryPos() + 2 ); + eFormat = static_cast<SvxDateFormat>( m_pLbFormat->GetSelectedEntryPos() + 2 ); pNewField = new SvxDateField( *pDateField ); static_cast<SvxDateField*>( pNewField )->SetType( eType ); @@ -108,7 +108,7 @@ SvxFieldData* SdModifyFieldDlg::GetField() else eType = SvxTimeType::Var; - eFormat = (SvxTimeFormat) ( m_pLbFormat->GetSelectedEntryPos() + 2 ); + eFormat = static_cast<SvxTimeFormat>( m_pLbFormat->GetSelectedEntryPos() + 2 ); pNewField = new SvxExtTimeField( *pTimeField ); static_cast<SvxExtTimeField*>( pNewField )->SetType( eType ); @@ -125,7 +125,7 @@ SvxFieldData* SdModifyFieldDlg::GetField() else eType = SvxFileType::Var; - eFormat = (SvxFileFormat) ( m_pLbFormat->GetSelectedEntryPos() ); + eFormat = static_cast<SvxFileFormat>( m_pLbFormat->GetSelectedEntryPos() ); ::sd::DrawDocShell* pDocSh = dynamic_cast< ::sd::DrawDocShell* >(SfxObjectShell::Current() ); @@ -153,7 +153,7 @@ SvxFieldData* SdModifyFieldDlg::GetField() else eType = SvxAuthorType::Var; - eFormat = (SvxAuthorFormat) ( m_pLbFormat->GetSelectedEntryPos() ); + eFormat = static_cast<SvxAuthorFormat>( m_pLbFormat->GetSelectedEntryPos() ); // Get current state of address, not the old one SvtUserOptions aUserOptions; @@ -236,7 +236,7 @@ void SdModifyFieldDlg::FillFormatList() m_pLbFormat->InsertEntry( SdResId( STR_FILEFORMAT_PATH ) ); m_pLbFormat->InsertEntry( SdResId( STR_FILEFORMAT_NAME ) ); - m_pLbFormat->SelectEntryPos( (sal_uInt16) ( pFileField->GetFormat() ) ); + m_pLbFormat->SelectEntryPos( static_cast<sal_uInt16>( pFileField->GetFormat() ) ); } else if( dynamic_cast< const SvxAuthorField *>( pField ) != nullptr ) { @@ -245,11 +245,11 @@ void SdModifyFieldDlg::FillFormatList() for( sal_uInt16 i = 0; i < 4; i++ ) { - aAuthorField.SetFormat( (SvxAuthorFormat) i ); + aAuthorField.SetFormat( static_cast<SvxAuthorFormat>(i) ); m_pLbFormat->InsertEntry( aAuthorField.GetFormatted() ); } - m_pLbFormat->SelectEntryPos( (sal_uInt16) ( pAuthorField->GetFormat() ) ); + m_pLbFormat->SelectEntryPos( static_cast<sal_uInt16>( pAuthorField->GetFormat() ) ); } |