mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
TextEditor: Convert to east-const style
This commit is contained in:
parent
73ae5200a9
commit
a3c8005546
Notes:
sideshowbarker
2024-07-18 09:25:48 +09:00
Author: https://github.com/timmot Commit: https://github.com/SerenityOS/serenity/commit/a3c80055462 Pull-request: https://github.com/SerenityOS/serenity/pull/7964 Reviewed-by: https://github.com/MaxWipfli Reviewed-by: https://github.com/gunnarbeutner
@ -245,7 +245,7 @@ MainWidget::MainWidget()
|
||||
m_editor->on_cursor_change = [this] { update_statusbar(); };
|
||||
m_editor->on_selection_change = [this] { update_statusbar(); };
|
||||
|
||||
m_new_action = GUI::Action::create("&New", { Mod_Ctrl, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/new.png"), [this](const GUI::Action&) {
|
||||
m_new_action = GUI::Action::create("&New", { Mod_Ctrl, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/new.png"), [this](GUI::Action const&) {
|
||||
if (editor().document().is_modified()) {
|
||||
auto save_document_first_result = GUI::MessageBox::show(window(), "Save changes to current document first?", "Warning", GUI::MessageBox::Type::Warning, GUI::MessageBox::InputType::YesNoCancel);
|
||||
if (save_document_first_result == GUI::Dialog::ExecResult::ExecYes)
|
||||
|
@ -24,8 +24,8 @@ int main(int argc, char** argv)
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
const char* preview_mode = "auto";
|
||||
const char* file_to_edit = nullptr;
|
||||
char const* preview_mode = "auto";
|
||||
char const* file_to_edit = nullptr;
|
||||
Core::ArgsParser parser;
|
||||
parser.add_option(preview_mode, "Preview mode, one of 'none', 'html', 'markdown', 'auto'", "preview-mode", '\0', "mode");
|
||||
parser.add_positional_argument(file_to_edit, "File to edit, with optional starting line and column number", "file[:line[:column]]", Core::ArgsParser::Required::No);
|
||||
|
Loading…
Reference in New Issue
Block a user