mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 08:18:55 +00:00
LibGUI: Explicitly default initialize class members
This commit is contained in:
parent
aafcdc4c72
commit
0bcfbdb072
Notes:
sideshowbarker
2024-07-17 08:55:13 +09:00
Author: https://github.com/LucasChollet
Commit: 0bcfbdb072
Pull-request: https://github.com/SerenityOS/serenity/pull/14058
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/petelliott
2 changed files with 3 additions and 3 deletions
|
@ -373,7 +373,7 @@ private:
|
||||||
bool m_cursor_line_highlighting { true };
|
bool m_cursor_line_highlighting { true };
|
||||||
size_t m_soft_tab_width { 4 };
|
size_t m_soft_tab_width { 4 };
|
||||||
int m_horizontal_content_padding { 3 };
|
int m_horizontal_content_padding { 3 };
|
||||||
TextRange m_selection;
|
TextRange m_selection {};
|
||||||
|
|
||||||
Optional<u32> m_substitution_code_point;
|
Optional<u32> m_substitution_code_point;
|
||||||
mutable OwnPtr<Vector<u32>> m_substitution_string_data; // Used to avoid repeated String construction.
|
mutable OwnPtr<Vector<u32>> m_substitution_string_data; // Used to avoid repeated String construction.
|
||||||
|
|
|
@ -61,8 +61,8 @@ private:
|
||||||
TextPosition normalized_start() const { return m_start < m_end ? m_start : m_end; }
|
TextPosition normalized_start() const { return m_start < m_end ? m_start : m_end; }
|
||||||
TextPosition normalized_end() const { return m_start < m_end ? m_end : m_start; }
|
TextPosition normalized_end() const { return m_start < m_end ? m_end : m_start; }
|
||||||
|
|
||||||
TextPosition m_start;
|
TextPosition m_start {};
|
||||||
TextPosition m_end;
|
TextPosition m_end {};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue