[code] Get rid of malloc: keep a buffer in Code::App to be used as python heap

This commit is contained in:
Émilie Feral
2018-09-19 18:20:30 +02:00
parent ac9b889a67
commit afce751eb7
12 changed files with 64 additions and 53 deletions

View File

@@ -8,10 +8,10 @@ namespace Code {
constexpr KDText::FontSize editorFontSize = KDText::FontSize::Large;
EditorView::EditorView(Responder * parentResponder) :
EditorView::EditorView(Responder * parentResponder, App * pythonDelegate) :
Responder(parentResponder),
View(),
m_textArea(parentResponder, editorFontSize),
m_textArea(parentResponder, pythonDelegate, editorFontSize),
m_gutterView(editorFontSize)
{
m_textArea.setScrollViewDelegate(this);