diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2020-02-22 01:52:47 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2020-04-02 16:01:36 +0000 |
commit | 144b2f85da4d51bf7d72b987888ddcaf5b429eed (patch) | |
tree | 756637308d5c336f6b45819936d99cb11d1638e9 /src/wallet/wallet.h | |
parent | b86cd155f6f661052042048aa7cfc2a397afe4f7 (diff) |
Wallet: Require usage of new CAddressBookData::setLabel to change label
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index c6f288a480..47268ba88c 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -181,14 +181,20 @@ public: /** Address book data */ class CAddressBookData { +private: + std::string m_label; public: - std::string name; + const std::string& name; std::string purpose; - CAddressBookData() : purpose("unknown") {} + CAddressBookData() : name(m_label), purpose("unknown") {} typedef std::map<std::string, std::string> StringMap; StringMap destdata; + + void SetLabel(const std::string& label) { + m_label = label; + } }; struct CRecipient |