mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibC+Everywhere: Remove open_with_path_length() in favor of open()
This API was a mostly gratuitous deviation from POSIX that gave up some portability in exchange for avoiding the occasional strlen(). I don't think that was actually achieving anything valuable, so let's just chill out and have the same open() API as everyone else. :^)
This commit is contained in:
parent
d551263b11
commit
1a08ac72ad
Notes:
sideshowbarker
2024-07-18 23:53:09 +09:00
Author: https://github.com/awesomekling
Commit: 1a08ac72ad
21 changed files with 51 additions and 69 deletions
|
@ -32,7 +32,7 @@
|
|||
|
||||
namespace PCIDB {
|
||||
|
||||
RefPtr<Database> Database::open(const StringView& file_name)
|
||||
RefPtr<Database> Database::open(const String& file_name)
|
||||
{
|
||||
auto file_or_error = MappedFile::map(file_name);
|
||||
if (file_or_error.is_error())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue