starmath/source/visitors.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 106ab783999d27d9d965ef570d6a02f0f6c57fbe Author: Takeshi Abe <t...@fixedpoint.jp> Date: Fri Nov 27 18:55:52 2015 +0900 starmath: Kill unnecessary cast Change-Id: I714c11941cfed207f10a5048a14b4cf72b4f255c Reviewed-on: https://gerrit.libreoffice.org/20222 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index bdde37e..7fcd98f 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -413,7 +413,7 @@ void SmDrawingVisitor::Visit( SmRootSymbolNode* pNode ) // draw root-sign itself DrawSpecialNode( pNode ); - SmTmpDevice aTmpDev( ( OutputDevice & ) rDev, true ); + SmTmpDevice aTmpDev( rDev, true ); aTmpDev.SetFillColor( pNode->GetFont( ).GetColor( ) ); rDev.SetLineColor( ); aTmpDev.SetFont( pNode->GetFont( ) ); @@ -469,7 +469,7 @@ void SmDrawingVisitor::Visit( SmPolyLineNode* pNode ) aPos ( Position + aOffset ); pNode->GetPolygon( ).Move( aPos.X( ), aPos.Y( ) ); //Works because Polygon wraps a pointer - SmTmpDevice aTmpDev ( ( OutputDevice & ) rDev, false ); + SmTmpDevice aTmpDev ( rDev, false ); aTmpDev.SetLineColor( pNode->GetFont( ).GetColor( ) ); rDev.DrawPolyLine( pNode->GetPolygon( ), aInfo ); @@ -480,7 +480,7 @@ void SmDrawingVisitor::Visit( SmRectangleNode* pNode ) if ( pNode->IsPhantom( ) ) return; - SmTmpDevice aTmpDev ( ( OutputDevice & ) rDev, false ); + SmTmpDevice aTmpDev ( rDev, false ); aTmpDev.SetFillColor( pNode->GetFont( ).GetColor( ) ); rDev.SetLineColor( ); aTmpDev.SetFont( pNode->GetFont( ) ); @@ -512,7 +512,7 @@ void SmDrawingVisitor::DrawTextNode( SmTextNode* pNode ) if ( pNode->IsPhantom() || pNode->GetText().isEmpty() || pNode->GetText()[0] == '\0' ) return; - SmTmpDevice aTmpDev ( ( OutputDevice & ) rDev, false ); + SmTmpDevice aTmpDev ( rDev, false ); aTmpDev.SetFont( pNode->GetFont( ) ); Point aPos ( Position );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits