mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 02:05:06 +00:00
Yet another pass of style fixes.
This commit is contained in:
parent
89040cdc99
commit
ec1c487dcd
43 changed files with 183 additions and 185 deletions
|
@ -78,7 +78,7 @@ void TextBox::handleBackspace()
|
|||
}
|
||||
|
||||
char* buffer;
|
||||
auto newText = StringImpl::createUninitialized(m_text.length() - 1, buffer);
|
||||
auto newText = StringImpl::create_uninitialized(m_text.length() - 1, buffer);
|
||||
|
||||
memcpy(buffer, m_text.characters(), m_cursorPosition - 1);
|
||||
memcpy(buffer + m_cursorPosition - 1, m_text.characters() + m_cursorPosition, m_text.length() - (m_cursorPosition - 1));
|
||||
|
@ -111,11 +111,11 @@ void TextBox::keyDownEvent(KeyEvent& event)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!event.text().isEmpty()) {
|
||||
if (!event.text().is_empty()) {
|
||||
ASSERT(event.text().length() == 1);
|
||||
|
||||
char* buffer;
|
||||
auto newText = StringImpl::createUninitialized(m_text.length() + 1, buffer);
|
||||
auto newText = StringImpl::create_uninitialized(m_text.length() + 1, buffer);
|
||||
|
||||
memcpy(buffer, m_text.characters(), m_cursorPosition);
|
||||
buffer[m_cursorPosition] = event.text()[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue