summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AK/DeprecatedString.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/DeprecatedString.h b/AK/DeprecatedString.h
index c7e4aad728..75cc762e0f 100644
--- a/AK/DeprecatedString.h
+++ b/AK/DeprecatedString.h
@@ -299,7 +299,7 @@ public:
return { characters(), length() };
}
- [[nodiscard]] DeprecatedString replace(StringView needle, StringView replacement, ReplaceMode replace_mode) const { return StringUtils::replace(*this, needle, replacement, replace_mode); }
+ [[nodiscard]] DeprecatedString replace(StringView needle, StringView replacement, ReplaceMode replace_mode = ReplaceMode::All) const { return StringUtils::replace(*this, needle, replacement, replace_mode); }
[[nodiscard]] size_t count(StringView needle) const { return StringUtils::count(*this, needle); }
[[nodiscard]] DeprecatedString reverse() const;