mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:17:35 +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,8 +38,8 @@ 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))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue