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:
parent
b4f47935a5
commit
ccc871e608
3 changed files with 4 additions and 4 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue