mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 07:32:52 +00:00
HackStudio: Use String instead of LexicalPath
LexicalPath is a 'heavier' object than a String that is mainly used for path parsing and validation, we don't actually need any of that in GitRepo and its related files, so let's move to String :^) I've also done some east-const conversion in the files that I was editing for the string change.
This commit is contained in:
parent
4cfc992125
commit
14b2656107
Notes:
sideshowbarker
2024-07-17 21:51:06 +09:00
Author: https://github.com/caoimhebyrne
Commit: 14b2656107
Pull-request: https://github.com/SerenityOS/serenity/pull/11521
Reviewed-by: https://github.com/BertalanD ✅
11 changed files with 79 additions and 77 deletions
|
@ -56,7 +56,7 @@ void GitFilesView::mousedown_event(GUI::MouseEvent& event)
|
|||
auto data = model()->index(item_index, model_column()).data();
|
||||
|
||||
VERIFY(data.is_string());
|
||||
m_action_callback(LexicalPath(data.to_string()));
|
||||
m_action_callback(data.to_string());
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue