diff options
author | demostanis <demostanis@protonmail.com> | 2022-10-22 15:38:21 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-24 23:29:18 +0100 |
commit | 3e8b5ac92012e19847e536a20a3f0ec7e5c787d3 (patch) | |
tree | 58294f8f5e5eeaa63231876148da783ca81015eb /Userland/Libraries/LibDiff/Format.cpp | |
parent | f485db2501c32bd626d58973c8a34a81e09ca5dc (diff) | |
download | serenity-3e8b5ac92012e19847e536a20a3f0ec7e5c787d3.zip |
AK+Everywhere: Turn bool keep_empty to an enum in split* functions
Diffstat (limited to 'Userland/Libraries/LibDiff/Format.cpp')
-rw-r--r-- | Userland/Libraries/LibDiff/Format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDiff/Format.cpp b/Userland/Libraries/LibDiff/Format.cpp index 1e1718ada0..9f109b4c24 100644 --- a/Userland/Libraries/LibDiff/Format.cpp +++ b/Userland/Libraries/LibDiff/Format.cpp @@ -12,7 +12,7 @@ namespace Diff { String generate_only_additions(String const& text) { - auto lines = text.split('\n', true); // Keep empty + auto lines = text.split('\n', SplitBehavior::KeepEmpty); StringBuilder builder; builder.appendff("@@ -0,0 +1,{} @@\n", lines.size()); for (auto const& line : lines) { |