mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 22:29:10 +00:00
LibCore: Use ErrorOr<T> for Core::get_password()
This commit is contained in:
parent
801d46d02c
commit
e76b21a66f
Notes:
sideshowbarker
2024-07-18 01:23:43 +09:00
Author: https://github.com/awesomekling
Commit: e76b21a66f
3 changed files with 11 additions and 13 deletions
|
@ -6,13 +6,11 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/OSError.h>
|
||||
#include <AK/Result.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Error.h>
|
||||
#include <LibCore/SecretString.h>
|
||||
|
||||
namespace Core {
|
||||
|
||||
Result<SecretString, OSError> get_password(const StringView& prompt = "Password: "sv);
|
||||
ErrorOr<SecretString> get_password(StringView prompt = "Password: "sv);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue