mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibGUI: Convert always-valid pointer to reference
The pointer is always assumed to be non-null, so let's change it to a reference.
This commit is contained in:
parent
5910a41adb
commit
2f023acf78
Notes:
sideshowbarker
2024-07-18 02:21:45 +09:00
Author: https://github.com/BenWiederhake
Commit: 2f023acf78
Pull-request: https://github.com/SerenityOS/serenity/pull/10476
4 changed files with 46 additions and 46 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue