1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

LibGUI: Explicitly default initialize class members

This commit is contained in:
Lucas CHOLLET 2022-05-17 20:40:00 +02:00 committed by Andreas Kling
parent aafcdc4c72
commit 0bcfbdb072
2 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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 {};
}; };
} }