mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +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
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