diff --git a/apps/code/python_text_area.cpp b/apps/code/python_text_area.cpp index 6d9074aa5..b165f0101 100644 --- a/apps/code/python_text_area.cpp +++ b/apps/code/python_text_area.cpp @@ -296,7 +296,6 @@ bool PythonTextArea::handleEvent(Ion::Events::Event event) { } else if(event == Ion::Events::Up || event == Ion::Events::Down) { - //TODO LEA handle only one suggestion in var box. cycleAutocompletion(event == Ion::Events::Down); return true; } else { @@ -343,9 +342,7 @@ void PythonTextArea::removeAutocompletionText() { const char * autocompleteStart = m_contentView.cursorLocation(); const char * autocompleteEnd = m_contentView.autocompletionEnd(); assert(autocompleteEnd != nullptr && autocompleteEnd > autocompleteStart); - //TODO LEA if (autocompleteEnd > autocompleteStart) { m_contentView.removeText(autocompleteStart, autocompleteEnd); - //TODO LEA } } void PythonTextArea::addAutocompletion() { diff --git a/apps/code/script_node.h b/apps/code/script_node.h index 695d7ae9b..6f2bd49f0 100644 --- a/apps/code/script_node.h +++ b/apps/code/script_node.h @@ -21,7 +21,7 @@ public: {} Type type() const { return m_type; } const char * name() const { return m_name; } - int nameLength() const { return m_nameLength; } + int nameLength() const { return static_cast(m_nameLength); } const char * nodeSourceName() const { return m_nodeSourceName; } const char * description() const { return m_description; } private: @@ -29,7 +29,7 @@ private: const char * m_name; const char * m_nodeSourceName; const char * m_description; - int m_nameLength; // TODO LEA smaller type ? + size_t m_nameLength; }; } diff --git a/apps/code/script_node_cell.cpp b/apps/code/script_node_cell.cpp index e0b42b68e..6ea546596 100644 --- a/apps/code/script_node_cell.cpp +++ b/apps/code/script_node_cell.cpp @@ -28,7 +28,7 @@ void ScriptNodeCell::ScriptNodeView::drawRect(KDContext * ctx, KDRect rect) cons } /* If it exists, draw the source name. If it did not fit, we would have put - * nullptr at the node creation. TODO LEA */ + * nullptr at the node creation. */ const char * sourceName = m_scriptNode->nodeSourceName(); if (sourceName != nullptr) { KDSize sourceNameSize = k_font->stringSize(sourceName);