aboutsummaryrefslogtreecommitdiff
path: root/src/device/device_ledger.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-08 15:58:33 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-09 09:39:18 +0000
commit35c20c4332b9483f0e4c60f244e44508e5fef69b (patch)
treee3c2047c2c231c33cf9f34ceeed04c226f7dea79 /src/device/device_ledger.cpp
parentp2p: fix GCC 9.1 crash (diff)
downloadmonero-35c20c4332b9483f0e4c60f244e44508e5fef69b.tar.xz
Fix GCC 9.1 build warnings
GCC wants operator= aand copy ctor to be both defined, or neither
Diffstat (limited to '')
-rw-r--r--src/device/device_ledger.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp
index 200370564..eba633da8 100644
--- a/src/device/device_ledger.cpp
+++ b/src/device/device_ledger.cpp
@@ -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++) {