mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 06:40:37 +01:00
[code] Add parentheses after function names in Var.
Change-Id: I7e3e993d07139c40c6bd59fd5879b3ee091f5127
This commit is contained in:
@@ -18,3 +18,11 @@ void BufferTextView::setText(const char * text) {
|
||||
strlcpy(m_buffer, text, sizeof(m_buffer));
|
||||
markRectAsDirty(bounds());
|
||||
}
|
||||
|
||||
void BufferTextView::appendText(const char * text) {
|
||||
size_t previousTextLength = strlen(m_buffer);
|
||||
size_t argTextLength = strlen(text);
|
||||
if (previousTextLength + argTextLength + 1 < k_maxNumberOfChar) {
|
||||
strlcpy(&m_buffer[previousTextLength], text, argTextLength + 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user