From dbcd45e2b84072de10d541cc43ce7a79b8d62071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 26 Jul 2018 14:14:11 +0200 Subject: [PATCH] [poincare] Make ParenthesisLayoutNode buffer static --- poincare/Makefile | 1 + poincare/include/poincare/parenthesis_layout_node.h | 2 +- poincare/src/parenthesis_layout_node.cpp | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 poincare/src/parenthesis_layout_node.cpp diff --git a/poincare/Makefile b/poincare/Makefile index 906f8fca6..5a6bc64d8 100644 --- a/poincare/Makefile +++ b/poincare/Makefile @@ -26,6 +26,7 @@ objs += $(addprefix poincare/src/,\ left_square_bracket_layout_node.o\ matrix_layout_node.o\ nth_root_layout_node.o\ + parenthesis_layout_node.o\ product_layout_node.o\ right_parenthesis_layout_node.o\ right_square_bracket_layout_node.o\ diff --git a/poincare/include/poincare/parenthesis_layout_node.h b/poincare/include/poincare/parenthesis_layout_node.h index 8ef390bc1..59945b867 100644 --- a/poincare/include/poincare/parenthesis_layout_node.h +++ b/poincare/include/poincare/parenthesis_layout_node.h @@ -24,7 +24,7 @@ public: #endif protected: - KDColor s_parenthesisWorkingBuffer[k_parenthesisCurveHeight*k_parenthesisCurveWidth]; + static KDColor s_parenthesisWorkingBuffer[k_parenthesisCurveHeight*k_parenthesisCurveWidth]; void computeSize() override { m_frame.setSize(KDSize(parenthesisWidth(), childHeight() + k_verticalMargin)); m_sized = true; diff --git a/poincare/src/parenthesis_layout_node.cpp b/poincare/src/parenthesis_layout_node.cpp new file mode 100644 index 000000000..7d48c5886 --- /dev/null +++ b/poincare/src/parenthesis_layout_node.cpp @@ -0,0 +1,7 @@ +#include + +namespace Poincare { + +KDColor ParenthesisLayoutNode::s_parenthesisWorkingBuffer[]; + +}