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

LibCore: Use ErrorOr<T> for Core::get_password()

This commit is contained in:
Andreas Kling 2021-11-07 11:24:26 +01:00
parent 801d46d02c
commit e76b21a66f
3 changed files with 11 additions and 13 deletions

View file

@ -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);
}