summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-08-26 00:52:56 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-08-26 00:56:56 +0000
commitea9a90d83d92076d41abfd31a1fd3a5d84b6ba92 (patch)
tree30fc58f5f9729eb5a42bcad767ce273299fb0ab9
parent139d3b3e8b157c1f365f888126269f0902acbaa2 (diff)
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>
-rw-r--r--starmath/inc/visitors.hxx2
-rw-r--r--starmath/source/visitors.cxx5
2 files changed, 3 insertions, 4 deletions
diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx
index ee9732ce3259..f19d6ae7b228 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 e3f9c0b266b8..92e90c91b4a0 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;