mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-20 01:11:07 +00:00
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: c52d3e65b9
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:
|
public:
|
||||||
UnsignedBigInteger(u32 x) { m_words.append(x); }
|
UnsignedBigInteger(u32 x) { m_words.append(x); }
|
||||||
|
|
||||||
UnsignedBigInteger(AK::Vector<u32>&& words)
|
explicit UnsignedBigInteger(AK::Vector<u32, STARTING_WORD_SIZE>&& words)
|
||||||
: m_words(words)
|
: m_words(move(words))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
UnsignedBigInteger() {}
|
UnsignedBigInteger() { }
|
||||||
|
|
||||||
static UnsignedBigInteger from_base10(const String& str);
|
static UnsignedBigInteger from_base10(const String& str);
|
||||||
static UnsignedBigInteger create_invalid();
|
static UnsignedBigInteger create_invalid();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue