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

This commit is contained in:
Andreas Kling 2021-11-07 11:24:26 +01:00
commit e76b21a66f
Notes: sideshowbarker 2024-07-18 01:23:43 +09:00
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);
}