mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-21 07:55:17 +00:00
Everywhere: Use east const in more places
These changes are compatible with clang-format 16 and will be mandatory when we eventually bump clang-format version. So, since there are no real downsides, let's commit them now.
This commit is contained in:
@@ -19,11 +19,11 @@ ClassViewWidget::ClassViewWidget()
|
||||
m_class_tree = add<GUI::TreeView>();
|
||||
|
||||
m_class_tree->on_selection_change = [this] {
|
||||
const auto& index = m_class_tree->selection().first();
|
||||
auto const& index = m_class_tree->selection().first();
|
||||
if (!index.is_valid())
|
||||
return;
|
||||
|
||||
auto* node = static_cast<const ClassViewNode*>(index.internal_data());
|
||||
auto* node = static_cast<ClassViewNode const*>(index.internal_data());
|
||||
if (!node->declaration)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user