LibRegex: Remove some meaningless/useless const-qualifiers

Also replace String creation from `""` with `String::empty()`
This commit is contained in:
Hendiadyoin1 2021-12-21 18:06:24 +01:00 committed by Brian Gianforcaro
commit 5885e70df7
Notes: sideshowbarker 2024-07-17 22:24:56 +09:00
4 changed files with 30 additions and 30 deletions

View file

@ -451,7 +451,7 @@ public:
Match() = default;
~Match() = default;
Match(RegexStringView const view_, size_t const line_, size_t const column_, size_t const global_offset_)
Match(RegexStringView view_, size_t const line_, size_t const column_, size_t const global_offset_)
: view(view_)
, line(line_)
, column(column_)
@ -460,7 +460,7 @@ public:
{
}
Match(String const string_, size_t const line_, size_t const column_, size_t const global_offset_)
Match(String string_, size_t const line_, size_t const column_, size_t const global_offset_)
: string(move(string_))
, view(string.value().view())
, line(line_)