mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 16:59:47 +00:00
AK+LibRegex: Disable construction of views from temporary Strings
This commit is contained in:
parent
e606ff3751
commit
e8f6840471
Notes:
sideshowbarker
2024-07-18 04:45:47 +09:00
Author: https://github.com/IdanHo
Commit: e8f6840471
Pull-request: https://github.com/SerenityOS/serenity/pull/9812
3 changed files with 6 additions and 0 deletions
|
@ -48,6 +48,8 @@ public:
|
|||
StringView(const String&);
|
||||
StringView(const FlyString&);
|
||||
|
||||
explicit StringView(String&&) = delete;
|
||||
|
||||
[[nodiscard]] constexpr bool is_null() const { return !m_characters; }
|
||||
[[nodiscard]] constexpr bool is_empty() const { return m_length == 0; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue