summaryrefslogtreecommitdiff
path: root/Userland/Applications/TextEditor
diff options
context:
space:
mode:
authorTimothy <timmot@users.noreply.github.com>2021-07-09 21:33:47 +1000
committerAndreas Kling <kling@serenityos.org>2021-07-10 15:33:46 +0200
commita3c8005546294ee5a4dbf81cfe2fc78622dc831e (patch)
tree5ed3cde2c9e1ed9242baac9e095221c11ceaf0e8 /Userland/Applications/TextEditor
parent73ae5200a9701f104726b673752752250beafa4d (diff)
downloadserenity-a3c8005546294ee5a4dbf81cfe2fc78622dc831e.zip
TextEditor: Convert to east-const style
Diffstat (limited to 'Userland/Applications/TextEditor')
-rw-r--r--Userland/Applications/TextEditor/MainWidget.cpp2
-rw-r--r--Userland/Applications/TextEditor/main.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/TextEditor/MainWidget.cpp b/Userland/Applications/TextEditor/MainWidget.cpp
index 15728b0199..f15776f6d6 100644
--- a/Userland/Applications/TextEditor/MainWidget.cpp
+++ b/Userland/Applications/TextEditor/MainWidget.cpp
@@ -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)
diff --git a/Userland/Applications/TextEditor/main.cpp b/Userland/Applications/TextEditor/main.cpp
index a79cb0b6d5..01827587ca 100644
--- a/Userland/Applications/TextEditor/main.cpp
+++ b/Userland/Applications/TextEditor/main.cpp
@@ -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);