1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

LibCore: Propagate errors in SecretString

This commit is contained in:
Undefine 2023-02-04 18:52:06 +01:00 committed by Andreas Kling
parent b4f47935a5
commit ccc871e608
3 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ class SecretString {
AK_MAKE_NONCOPYABLE(SecretString);
public:
[[nodiscard]] static SecretString take_ownership(char*&, size_t);
[[nodiscard]] static ErrorOr<SecretString> take_ownership(char*&, size_t);
[[nodiscard]] static SecretString take_ownership(ByteBuffer&&);
[[nodiscard]] bool is_empty() const { return m_secure_buffer.is_empty(); }