1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

LibDiff: Port Diff::Hunk from DeprecatedString to String

Removing the last instance of DeprecatedString in this library! :^)
This commit is contained in:
Shannon Booth 2023-06-24 13:17:24 +12:00 committed by Andreas Kling
parent 9dc92f19b8
commit d3a27eeaf2
3 changed files with 7 additions and 7 deletions

View file

@ -6,7 +6,7 @@
#pragma once
#include <AK/DeprecatedString.h>
#include <AK/String.h>
#include <AK/StringView.h>
#include <AK/Vector.h>
@ -29,8 +29,8 @@ struct HunkLocation {
struct Hunk {
size_t original_start_line { 0 };
size_t target_start_line { 0 };
Vector<DeprecatedString> removed_lines;
Vector<DeprecatedString> added_lines;
Vector<String> removed_lines;
Vector<String> added_lines;
};
ErrorOr<Vector<Hunk>> parse_hunks(StringView diff);