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/app/sdpopup.cxx | |
parent | 5cd41952cdb1c3c14cd48858d382d8bd95f602ff (diff) |
More loplugin:cstylecast: sd
Change-Id: I77ed2793aad62377ec6fc2513e06e2371c1c77ad
Diffstat (limited to 'sd/source/ui/app/sdpopup.cxx')
-rw-r--r-- | sd/source/ui/app/sdpopup.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sd/source/ui/app/sdpopup.cxx b/sd/source/ui/app/sdpopup.cxx index f5c77ab55d5a..08a1c06db958 100644 --- a/sd/source/ui/app/sdpopup.cxx +++ b/sd/source/ui/app/sdpopup.cxx @@ -85,7 +85,7 @@ void SdFieldPopup::Fill( LanguageType eLanguage ) aDateField.SetFormat( SvxDateFormat::F ); // Dienstag, 13.Februar 1996 InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - CheckItem( (sal_uInt16) ( pDateField->GetFormat() ) + 1 ); // - 2 + 3 ! + CheckItem( static_cast<sal_uInt16>( pDateField->GetFormat() ) + 1 ); // - 2 + 3 ! } else if( dynamic_cast< const SvxExtTimeField *>( pField ) != nullptr ) { @@ -119,7 +119,7 @@ void SdFieldPopup::Fill( LanguageType eLanguage ) //SvxTimeFormat::HH12_MM_SS_AMPM, // 01:49:38 PM //SvxTimeFormat::HH12_MM_SS_00_AMPM // 01:49:38.78 PM - CheckItem( (sal_uInt16) ( pTimeField->GetFormat() ) + 1 ); // - 2 + 3 ! + CheckItem( static_cast<sal_uInt16>( pTimeField->GetFormat() ) + 1 ); // - 2 + 3 ! } else if( dynamic_cast< const SvxExtFileField *>( pField ) != nullptr ) { @@ -136,7 +136,7 @@ void SdFieldPopup::Fill( LanguageType eLanguage ) InsertItem( nID++, SdResId( STR_FILEFORMAT_PATH ), nStyle ); InsertItem( nID++, SdResId( STR_FILEFORMAT_NAME ), nStyle ); - CheckItem( (sal_uInt16) ( pFileField->GetFormat() ) + 3 ); + CheckItem( static_cast<sal_uInt16>( pFileField->GetFormat() ) + 3 ); } else if( dynamic_cast< const SvxAuthorField *>( pField ) != nullptr ) { @@ -150,10 +150,10 @@ void SdFieldPopup::Fill( LanguageType eLanguage ) for( sal_uInt16 i = 0; i < 4; i++ ) { - aAuthorField.SetFormat( (SvxAuthorFormat) i ); + aAuthorField.SetFormat( static_cast<SvxAuthorFormat>(i) ); InsertItem( nID++, aAuthorField.GetFormatted(), nStyle ); } - CheckItem( (sal_uInt16) ( pAuthorField->GetFormat() ) + 3 ); + CheckItem( static_cast<sal_uInt16>( pAuthorField->GetFormat() ) + 3 ); } } @@ -183,7 +183,7 @@ SvxFieldData* SdFieldPopup::GetField() if( IsItemChecked( i ) ) break; } - eFormat = (SvxDateFormat) ( i - 1 ); + eFormat = static_cast<SvxDateFormat>( i - 1 ); if( pDateField->GetFormat() != eFormat || pDateField->GetType() != eType ) @@ -216,7 +216,7 @@ SvxFieldData* SdFieldPopup::GetField() if( IsItemChecked( i ) ) break; } - eFormat = (SvxTimeFormat) ( i - 1 ); + eFormat = static_cast<SvxTimeFormat>( i - 1 ); if( pTimeField->GetFormat() != eFormat || pTimeField->GetType() != eType ) @@ -250,7 +250,7 @@ SvxFieldData* SdFieldPopup::GetField() if( IsItemChecked( i ) ) break; } - eFormat = (SvxFileFormat) ( i - 3 ); + eFormat = static_cast<SvxFileFormat>( i - 3 ); if( pFileField->GetFormat() != eFormat || pFileField->GetType() != eType ) @@ -289,7 +289,7 @@ SvxFieldData* SdFieldPopup::GetField() if( IsItemChecked( i ) ) break; } - eFormat = (SvxAuthorFormat) ( i - 3 ); + eFormat = static_cast<SvxAuthorFormat>( i - 3 ); if( pAuthorField->GetFormat() != eFormat || pAuthorField->GetType() != eType ) |