summaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-19 00:36:30 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-19 14:45:59 +0100
commit4b900bc10038e0b08cdb1eec5adc12275e40e066 (patch)
tree2f8ec51289a28ddae71cb250ef896da0f6353d18 /.clang-tidy
parent25504f6a1b8e37c3da36845a27441cc5aba67f0c (diff)
downloadserenity-4b900bc10038e0b08cdb1eec5adc12275e40e066.zip
AK: Add fast path in String::trim() and String::trim_whitespace()
If the trimmed string would be the entire string, just return *this instead of creating a new StringImpl.
Diffstat (limited to '.clang-tidy')
0 files changed, 0 insertions, 0 deletions