mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
Kernel: Use operator ""sv
in all purpose() implementations
Previously there was a mix of returning plain strings and returning explicit string views using `operator ""sv`. This change switches them all to standardized on `operator ""sv` as it avoids a call to strlen.
This commit is contained in:
parent
5f1c98e576
commit
3a945051fc
Notes:
sideshowbarker
2024-07-18 03:09:36 +09:00
Author: https://github.com/bgianfo
Commit: 3a945051fc
Pull-request: https://github.com/SerenityOS/serenity/pull/10325
Reviewed-by: https://github.com/BenWiederhake
10 changed files with 11 additions and 11 deletions
|
@ -41,7 +41,7 @@ bool SpuriousInterruptHandler::eoi()
|
|||
StringView SpuriousInterruptHandler::purpose() const
|
||||
{
|
||||
if (!m_real_handler)
|
||||
return "Spurious Interrupt Handler";
|
||||
return "Spurious Interrupt Handler"sv;
|
||||
return m_real_handler->purpose();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue