From 8196036eb38828df304877ed6e871e978e5253b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 21 Nov 2018 17:47:30 +0100 Subject: [PATCH] [poincare] Remove default arguments to TreeNode::serialize Put them on LayoutNode::serialize --- poincare/include/poincare/layout_node.h | 1 + poincare/include/poincare/tree_node.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/poincare/include/poincare/layout_node.h b/poincare/include/poincare/layout_node.h index f9aa51d50..40a2afe41 100644 --- a/poincare/include/poincare/layout_node.h +++ b/poincare/include/poincare/layout_node.h @@ -37,6 +37,7 @@ public: KDCoordinate baseline(); //TODO: invalid cache when tempering with hierarchy virtual void invalidAllSizesPositionsAndBaselines(); + int serialize(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const override { assert(false); return 0; } // Tree LayoutNode * parent() const override { return static_cast(TreeNode::parent()); } diff --git a/poincare/include/poincare/tree_node.h b/poincare/include/poincare/tree_node.h index f21c2efa6..4a5393b4f 100644 --- a/poincare/include/poincare/tree_node.h +++ b/poincare/include/poincare/tree_node.h @@ -83,7 +83,7 @@ public: virtual void didAddChildAtIndex(int newNumberOfChildren) {} // Serialization - virtual int serialize(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const { assert(false); return 0; } + virtual int serialize(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const { assert(false); return 0; } virtual bool childNeedsParenthesis(const TreeNode * child) const { return false; }; template