diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-08 16:40:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-08 16:47:31 +0200 |
commit | 92c517b9f9043ecea67128b097b49e6ae7c46683 (patch) | |
tree | 4303b3782dd75ccab5797139e71842324288e261 /sot | |
parent | 0d4a49b23d6a0b206d3901a657d29944ad43007f (diff) |
loplugin:redundantcast: redundant static_casts in sot
Change-Id: I29403dacedcff60f2d4c5818636db24fad4ab67e
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/base/exchange.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx index 80cebd06953f..4665ec805fd6 100644 --- a/sot/source/base/exchange.cxx +++ b/sot/source/base/exchange.cxx @@ -455,7 +455,7 @@ SotClipboardFormatId SotExchange::GetFormat( const DataFlavor& rFlavor ) const DataFlavorRepresentation *pFormatArray_Impl = FormatArray_Impl::get(); for( SotClipboardFormatId i = SotClipboardFormatId::STRING; i <= SotClipboardFormatId::FILE_LIST; ++i ) if( rMimeType.equalsAscii( pFormatArray_Impl[ static_cast<int>(i) ].pMimeType ) ) - return static_cast<SotClipboardFormatId>(i); + return i; // BM: the chart format 105 ("StarChartDocument 5.0") was written // only into 5.1 chart documents - in 5.0 and 5.2 it was 42 ("StarChart 5.0") @@ -463,8 +463,8 @@ SotClipboardFormatId SotExchange::GetFormat( const DataFlavor& rFlavor ) for( SotClipboardFormatId i = SotClipboardFormatId::RTF; i <= SotClipboardFormatId::USER_END; ++i ) if( rMimeType.equalsAscii( pFormatArray_Impl[ static_cast<int>(i) ].pMimeType ) ) return ( (i == SotClipboardFormatId::STARCHARTDOCUMENT_50) - ? static_cast<SotClipboardFormatId>(SotClipboardFormatId::STARCHART_50) - : static_cast<SotClipboardFormatId>(i) ); + ? SotClipboardFormatId::STARCHART_50 + : i ); // dann in der dynamischen Liste tDataFlavorList& rL = InitFormats_Impl(); |