mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibGUI: Remove wrong casts in TextDocument.cpp
This commit is contained in:
parent
d391f1fb2a
commit
cf693136e2
1 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,7 @@ void TextDocument::append_line(NonnullOwnPtr<TextDocumentLine> line)
|
|||
|
||||
void TextDocument::insert_line(size_t line_index, NonnullOwnPtr<TextDocumentLine> line)
|
||||
{
|
||||
lines().insert((int)line_index, move(line));
|
||||
lines().insert(line_index, move(line));
|
||||
if (m_client_notifications_enabled) {
|
||||
for (auto* client : m_clients)
|
||||
client->document_did_insert_line(line_index);
|
||||
|
@ -282,7 +282,7 @@ NonnullOwnPtr<TextDocumentLine> TextDocument::take_line(size_t line_index)
|
|||
|
||||
void TextDocument::remove_line(size_t line_index)
|
||||
{
|
||||
lines().remove((int)line_index);
|
||||
lines().remove(line_index);
|
||||
if (m_client_notifications_enabled) {
|
||||
for (auto* client : m_clients)
|
||||
client->document_did_remove_line(line_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue