mirror of
https://github.com/monero-project/monero.git
synced 2025-08-03 13:16:09 -04:00
Fix GCC 9.1 build warnings
GCC wants operator= aand copy ctor to be both defined, or neither
This commit is contained in:
parent
2cbe75661c
commit
35c20c4332
3 changed files with 20 additions and 0 deletions
|
@ -90,6 +90,20 @@ namespace hw {
|
|||
AKout = keys.AKout;
|
||||
}
|
||||
|
||||
ABPkeys &ABPkeys::operator=(const ABPkeys& keys) {
|
||||
if (&keys == this)
|
||||
return *this;
|
||||
Aout = keys.Aout;
|
||||
Bout = keys.Bout;
|
||||
is_subaddress = keys.is_subaddress;
|
||||
is_change_address = keys.is_change_address;
|
||||
additional_key = keys.additional_key;
|
||||
index = keys.index;
|
||||
Pout = keys.Pout;
|
||||
AKout = keys.AKout;
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool Keymap::find(const rct::key& P, ABPkeys& keys) const {
|
||||
size_t sz = ABP.size();
|
||||
for (size_t i=0; i<sz; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue