[poincare] Make ParenthesisLayoutNode buffer static

This commit is contained in:
Léa Saviot
2018-07-26 14:14:11 +02:00
parent 6ae578b5aa
commit dbcd45e2b8
3 changed files with 9 additions and 1 deletions

View File

@@ -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\

View File

@@ -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;

View File

@@ -0,0 +1,7 @@
#include <poincare/parenthesis_layout_node.h>
namespace Poincare {
KDColor ParenthesisLayoutNode::s_parenthesisWorkingBuffer[];
}