From 742ee475ea316a94b700e5f3bd643162e8a4f63f Mon Sep 17 00:00:00 2001 From: Ruben Dashyan Date: Tue, 28 Jan 2020 15:20:39 +0100 Subject: [PATCH] [escher/text_area] Fix typo --- escher/src/text_area.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/escher/src/text_area.cpp b/escher/src/text_area.cpp index 1dfe2cdd7..e90a3320e 100644 --- a/escher/src/text_area.cpp +++ b/escher/src/text_area.cpp @@ -453,12 +453,12 @@ KDSize TextArea::ContentView::minimalSizeForOptimalDisplay() const { ); } -void TextArea::TextArea::ContentView::setText(char * textBuffer, size_t textBufferSize) { +void TextArea::ContentView::setText(char * textBuffer, size_t textBufferSize) { m_text.setText(textBuffer, textBufferSize); m_cursorLocation = text(); } -bool TextArea::TextArea::ContentView::insertTextAtLocation(const char * text, const char * location) { +bool TextArea::ContentView::insertTextAtLocation(const char * text, const char * location) { int textSize = strlen(text); if (m_text.textLength() + textSize >= m_text.bufferSize() || textSize == 0) { return false; @@ -482,7 +482,7 @@ bool TextArea::TextArea::ContentView::insertTextAtLocation(const char * text, co return true; } -bool TextArea::TextArea::ContentView::removePreviousGlyph() { +bool TextArea::ContentView::removePreviousGlyph() { if (cursorLocation() <= text()) { assert(cursorLocation() == text()); return false;