diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-19 15:17:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-29 12:50:34 +0200 |
commit | 26f2da07b1c6074e519d28557a3d1d5518ff6cb4 (patch) | |
tree | 6981a11bc7e6fc897771277a7b60a6e3a88cff29 /vcl/source/edit | |
parent | d9632a6effabe8554c4e7e05ee24c16acd0f4f95 (diff) |
loplugin: cstylecast
Change-Id: I58ec00d6f8a4cc6188877db1330c5e32c9db12e5
Diffstat (limited to 'vcl/source/edit')
-rw-r--r-- | vcl/source/edit/texteng.cxx | 4 | ||||
-rw-r--r-- | vcl/source/edit/textundo.cxx | 2 | ||||
-rw-r--r-- | vcl/source/edit/textview.cxx | 2 | ||||
-rw-r--r-- | vcl/source/edit/txtattr.cxx | 10 | ||||
-rw-r--r-- | vcl/source/edit/xtextedt.cxx | 6 |
5 files changed, 12 insertions, 12 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 0cc3f90f6066..19f9bc9db4ba 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -1420,7 +1420,7 @@ void TextEngine::SeekCursor( sal_uLong nPara, sal_uInt16 nPos, vcl::Font& rFont, else { if ( pOutDev ) - pOutDev->SetTextColor( ((TextAttribFontColor&)pAttrib->GetAttr()).GetColor() ); + pOutDev->SetTextColor( static_cast<const TextAttribFontColor&>(pAttrib->GetAttr()).GetColor() ); } } } @@ -2602,7 +2602,7 @@ bool TextEngine::Write( SvStream& rOutput, const TextSelection* pSel, bool bHTML // e.g. <A HREF="http://www.mopo.de/">Morgenpost</A> aText.append( "<A HREF=\"" ); - aText.append( ((const TextAttribHyperLink&) pAttr->GetAttr() ).GetURL() ); + aText.append( static_cast<const TextAttribHyperLink&>( pAttr->GetAttr() ).GetURL() ); aText.append( "\">" ); nTmpStart = pAttr->GetStart(); aText.append( pNode->GetText().copy( nTmpStart, nTmpEnd-nTmpStart ) ); diff --git a/vcl/source/edit/textundo.cxx b/vcl/source/edit/textundo.cxx index 59781e1d585d..57a721ed2b33 100644 --- a/vcl/source/edit/textundo.cxx +++ b/vcl/source/edit/textundo.cxx @@ -280,7 +280,7 @@ bool TextUndoInsertChars::Merge( SfxUndoAction* pNextAction ) if ( !pNextAction->ISA( TextUndoInsertChars ) ) return false; - TextUndoInsertChars* pNext = (TextUndoInsertChars*)pNextAction; + TextUndoInsertChars* pNext = static_cast<TextUndoInsertChars*>(pNextAction); if ( maTextPaM.GetPara() != pNext->maTextPaM.GetPara() ) return false; diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx index c2b7fadb2771..fdd4872bf792 100644 --- a/vcl/source/edit/textview.cxx +++ b/vcl/source/edit/textview.cxx @@ -106,7 +106,7 @@ uno::Any TETextDataObject::getTransferData( const datatransfer::DataFlavor& rFla sal_uLong nT = SotExchange::GetFormat( rFlavor ); if ( nT == SOT_FORMAT_STRING ) { - aAny <<= (OUString)GetText(); + aAny <<= GetText(); } else if ( nT == SOT_FORMATSTR_ID_HTML ) { diff --git a/vcl/source/edit/txtattr.cxx b/vcl/source/edit/txtattr.cxx index 2baa47bc213f..1d894273e449 100644 --- a/vcl/source/edit/txtattr.cxx +++ b/vcl/source/edit/txtattr.cxx @@ -56,7 +56,7 @@ TextAttrib* TextAttribFontColor::Clone() const bool TextAttribFontColor::operator==( const TextAttrib& rAttr ) const { return ( ( TextAttrib::operator==(rAttr ) ) && - ( maColor == ((const TextAttribFontColor&)rAttr).maColor ) ); + ( maColor == static_cast<const TextAttribFontColor&>(rAttr).maColor ) ); } TextAttribFontWeight::TextAttribFontWeight( FontWeight eWeight ) @@ -86,7 +86,7 @@ TextAttrib* TextAttribFontWeight::Clone() const bool TextAttribFontWeight::operator==( const TextAttrib& rAttr ) const { return ( ( TextAttrib::operator==(rAttr ) ) && - ( meWeight == ((const TextAttribFontWeight&)rAttr).meWeight ) ); + ( meWeight == static_cast<const TextAttribFontWeight&>(rAttr).meWeight ) ); } TextAttribHyperLink::TextAttribHyperLink( const TextAttribHyperLink& rAttr ) @@ -113,9 +113,9 @@ TextAttrib* TextAttribHyperLink::Clone() const bool TextAttribHyperLink::operator==( const TextAttrib& rAttr ) const { return ( ( TextAttrib::operator==(rAttr ) ) && - ( maURL == ((const TextAttribHyperLink&)rAttr).maURL ) && - ( maDescription == ((const TextAttribHyperLink&)rAttr).maDescription ) && - ( maColor == ((const TextAttribHyperLink&)rAttr).maColor ) ); + ( maURL == static_cast<const TextAttribHyperLink&>(rAttr).maURL ) && + ( maDescription == static_cast<const TextAttribHyperLink&>(rAttr).maDescription ) && + ( maColor == static_cast<const TextAttribHyperLink&>(rAttr).maColor ) ); } TextAttribProtect::TextAttribProtect() : diff --git a/vcl/source/edit/xtextedt.cxx b/vcl/source/edit/xtextedt.cxx index 4fd5f27e498d..072e1f9dab91 100644 --- a/vcl/source/edit/xtextedt.cxx +++ b/vcl/source/edit/xtextedt.cxx @@ -241,7 +241,7 @@ bool ExtTextView::MatchGroup() return false; } - TextSelection aMatchSel = ((ExtTextEngine*)GetTextEngine())->MatchGroup( aTmpSel.GetStart() ); + TextSelection aMatchSel = static_cast<ExtTextEngine*>(GetTextEngine())->MatchGroup( aTmpSel.GetStart() ); if ( aMatchSel.HasRange() ) SetSelection( aMatchSel ); @@ -252,7 +252,7 @@ bool ExtTextView::Search( const util::SearchOptions& rSearchOptions, bool bForwa { bool bFound = false; TextSelection aSel( GetSelection() ); - if ( ((ExtTextEngine*)GetTextEngine())->Search( aSel, rSearchOptions, bForward ) ) + if ( static_cast<ExtTextEngine*>(GetTextEngine())->Search( aSel, rSearchOptions, bForward ) ) { bFound = true; // First add the beginning of the word to the selection, @@ -293,7 +293,7 @@ sal_uInt16 ExtTextView::Replace( const util::SearchOptions& rSearchOptions, bool { // the writer replaces all, from beginning to end - ExtTextEngine* pTextEngine = (ExtTextEngine*)GetTextEngine(); + ExtTextEngine* pTextEngine = static_cast<ExtTextEngine*>(GetTextEngine()); // HideSelection(); TextSelection aSel; |