Lua: Fix compilation error

Amends ab59396862

Change-Id: I5853604d2ffceb8daca6ee4d2cb1857212e11cfc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Cristian Adam
2024-08-30 20:18:48 +02:00
parent 415391b2b8
commit 285de16c00

View File

@@ -552,7 +552,7 @@ void setupTextEditorModule()
auto one_based = [](int zero_based) { return zero_based + 1; };
Text::Position start_pos = {one_based(start_line), start_character};
Text::Position end_pos = {one_based(end_line), end_character};
return {Text::Range(start_pos, end_pos), start_pos, text};
return {Text::Range{start_pos, end_pos}, start_pos, text};
});
result.new_usertype<TextEditor::TextDocument>(