mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +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:
parent
5ef6df79ed
commit
5ed7cd6e32
Notes:
sideshowbarker
2024-07-16 23:38:54 +09:00
Author: https://github.com/DanShaders
Commit: 5ed7cd6e32
Pull-request: https://github.com/SerenityOS/serenity/pull/24014
175 changed files with 353 additions and 353 deletions
|
@ -23,7 +23,7 @@ RefPtr<Database> Database::open(ByteString const& filename)
|
|||
return res;
|
||||
}
|
||||
|
||||
const StringView Database::get_vendor(u16 vendor_id) const
|
||||
StringView const Database::get_vendor(u16 vendor_id) const
|
||||
{
|
||||
auto const& vendor = m_vendors.get(vendor_id);
|
||||
if (!vendor.has_value())
|
||||
|
@ -31,7 +31,7 @@ const StringView Database::get_vendor(u16 vendor_id) const
|
|||
return vendor.value()->name;
|
||||
}
|
||||
|
||||
const StringView Database::get_device(u16 vendor_id, u16 device_id) const
|
||||
StringView const Database::get_device(u16 vendor_id, u16 device_id) const
|
||||
{
|
||||
auto const& vendor = m_vendors.get(vendor_id);
|
||||
if (!vendor.has_value()) {
|
||||
|
@ -43,7 +43,7 @@ const StringView Database::get_device(u16 vendor_id, u16 device_id) const
|
|||
return device.value()->name;
|
||||
}
|
||||
|
||||
const StringView Database::get_interface(u16 vendor_id, u16 device_id, u16 interface_id) const
|
||||
StringView const Database::get_interface(u16 vendor_id, u16 device_id, u16 interface_id) const
|
||||
{
|
||||
auto const& vendor = m_vendors.get(vendor_id);
|
||||
if (!vendor.has_value())
|
||||
|
@ -57,7 +57,7 @@ const StringView Database::get_interface(u16 vendor_id, u16 device_id, u16 inter
|
|||
return interface.value()->name;
|
||||
}
|
||||
|
||||
const StringView Database::get_class(u8 class_id) const
|
||||
StringView const Database::get_class(u8 class_id) const
|
||||
{
|
||||
auto const& xclass = m_classes.get(class_id);
|
||||
if (!xclass.has_value())
|
||||
|
@ -65,7 +65,7 @@ const StringView Database::get_class(u8 class_id) const
|
|||
return xclass.value()->name;
|
||||
}
|
||||
|
||||
const StringView Database::get_subclass(u8 class_id, u8 subclass_id) const
|
||||
StringView const Database::get_subclass(u8 class_id, u8 subclass_id) const
|
||||
{
|
||||
auto const& xclass = m_classes.get(class_id);
|
||||
if (!xclass.has_value())
|
||||
|
@ -76,7 +76,7 @@ const StringView Database::get_subclass(u8 class_id, u8 subclass_id) const
|
|||
return subclass.value()->name;
|
||||
}
|
||||
|
||||
const StringView Database::get_protocol(u8 class_id, u8 subclass_id, u8 protocol_id) const
|
||||
StringView const Database::get_protocol(u8 class_id, u8 subclass_id, u8 protocol_id) const
|
||||
{
|
||||
auto const& xclass = m_classes.get(class_id);
|
||||
if (!xclass.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue