summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-11-27 18:55:52 +0900
committerCaolán McNamara <caolanm@redhat.com>2015-11-27 16:38:40 +0000
commit106ab783999d27d9d965ef570d6a02f0f6c57fbe (patch)
tree9f4cf351a964deca6ee9bcd5b80f143d4f906b10 /starmath
parent26c32cfee9fc9a769adba19f455e4d6c13b6d89d (diff)
starmath: Kill unnecessary cast
Change-Id: I714c11941cfed207f10a5048a14b4cf72b4f255c Reviewed-on: https://gerrit.libreoffice.org/20222 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/visitors.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index bdde37eb4e05..7fcd98f7cd78 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 );