LibCrypto: Cleanup UnsignedBigInteger a bit
- Add missing 'explicit' to the constructor - Remove unneeded 'AK::' in AK::Vector - Avoid copying 'words' in constructor
This commit is contained in:
parent
2125a4debb
commit
c52d3e65b9
Notes:
sideshowbarker
2024-07-19 07:05:30 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/c52d3e65b90 Pull-request: https://github.com/SerenityOS/serenity/pull/1661 Reviewed-by: https://github.com/Dexesttp Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling
1 changed files with 3 additions and 3 deletions
|
@ -38,12 +38,12 @@ class UnsignedBigInteger {
|
|||
public:
|
||||
UnsignedBigInteger(u32 x) { m_words.append(x); }
|
||||
|
||||
UnsignedBigInteger(AK::Vector<u32>&& words)
|
||||
: m_words(words)
|
||||
explicit UnsignedBigInteger(AK::Vector<u32, STARTING_WORD_SIZE>&& words)
|
||||
: m_words(move(words))
|
||||
{
|
||||
}
|
||||
|
||||
UnsignedBigInteger() {}
|
||||
UnsignedBigInteger() { }
|
||||
|
||||
static UnsignedBigInteger from_base10(const String& str);
|
||||
static UnsignedBigInteger create_invalid();
|
||||
|
|
Loading…
Add table
Reference in a new issue