Fix GCC 9.1 build warnings

GCC wants operator= aand copy ctor to be both defined, or neither
This commit is contained in:
moneromooo-monero 2019-06-08 15:58:33 +00:00
parent 2cbe75661c
commit 35c20c4332
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 20 additions and 0 deletions

View file

@ -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++) {