mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 04:55:15 +00:00
AK: Annotate String.count as [[nodiscard]]
This commit is contained in:
parent
18eb262157
commit
f2d684fc24
Notes:
sideshowbarker
2024-07-18 07:02:45 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/f2d684fc24c Pull-request: https://github.com/SerenityOS/serenity/pull/9372
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ public:
|
|||
}
|
||||
|
||||
int replace(const String& needle, const String& replacement, bool all_occurrences = false);
|
||||
size_t count(const String& needle) const;
|
||||
[[nodiscard]] size_t count(const String& needle) const;
|
||||
[[nodiscard]] String reverse() const;
|
||||
|
||||
template<typename... Ts>
|
||||
|
|
Loading…
Add table
Reference in a new issue