diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-10-11 22:51:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-15 10:38:57 +0200 |
commit | 2f023acf78e5179cd314ea73da501b03c24f0fd5 (patch) | |
tree | 50b323e7c8d85de021842b0ba9374582403b9678 /Userland/Libraries/LibGUI/TextEditor.h | |
parent | 5910a41adb2b3f46a5f32be3a62bee9828923356 (diff) | |
download | serenity-2f023acf78e5179cd314ea73da501b03c24f0fd5.zip |
LibGUI: Convert always-valid pointer to reference
The pointer is always assumed to be non-null, so let's change it to a
reference.
Diffstat (limited to 'Userland/Libraries/LibGUI/TextEditor.h')
-rw-r--r-- | Userland/Libraries/LibGUI/TextEditor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/TextEditor.h b/Userland/Libraries/LibGUI/TextEditor.h index c291e38c49..f783d29b51 100644 --- a/Userland/Libraries/LibGUI/TextEditor.h +++ b/Userland/Libraries/LibGUI/TextEditor.h @@ -193,7 +193,7 @@ public: bool is_in_drag_select() const { return m_in_drag_select; } - TextRange* selection() { return &m_selection; }; + TextRange& selection() { return m_selection; }; void did_update_selection(); void did_change(AllowCallback = AllowCallback::Yes); void update_cursor(); |