[Libreoffice-commits] core.git: starmath/source
Takeshi Abe
tabe at fixedpoint.jp
Fri Nov 27 08:39:13 PST 2015
starmath/source/visitors.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 106ab783999d27d9d965ef570d6a02f0f6c57fbe
Author: Takeshi Abe <tabe at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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 );
More information about the Libreoffice-commits
mailing list