SmDrawingVisitor does nothing for SmBlankNode
Change-Id: Iea9139617d0a572f2577f31928d1a1e603b90ed6
Reviewed-on: https://gerrit.libreoffice.org/28392
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx
index ee9732c..f19d6ae 100644
--- a/starmath/inc/visitors.hxx
+++ b/starmath/inc/visitors.hxx
@@ -209,7 +209,7 @@ private:
/** Draw the children of a pNode
* This the default method, use by most pNodes
*/
void DrawChildren( SmNode* pNode );
void DrawChildren( SmStructureNode* pNode );
/** Draw an SmTextNode or a subclass of this */
void DrawTextNode( SmTextNode* pNode );
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index e3f9c0b..92e90c9 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -369,9 +369,8 @@ void SmDrawingVisitor::Visit( SmMathSymbolNode* pNode )
DrawSpecialNode( pNode );
}
void SmDrawingVisitor::Visit( SmBlankNode* pNode )
void SmDrawingVisitor::Visit( SmBlankNode* )
{
DrawChildren( pNode );
}
void SmDrawingVisitor::Visit( SmErrorNode* pNode )
@@ -531,7 +530,7 @@ void SmDrawingVisitor::DrawSpecialNode( SmSpecialNode* pNode )
DrawTextNode( pNode );
}
void SmDrawingVisitor::DrawChildren( SmNode* pNode )
void SmDrawingVisitor::DrawChildren( SmStructureNode* pNode )
{
if ( pNode->IsPhantom( ) )
return;