diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-12-15 14:35:47 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-12-15 14:35:47 +0200 |
| commit | 73e50749e23de068eeb09e4873a8b5563f4950b9 (patch) | |
| tree | 34f54940c2602beed3c41738a1b1fe7fc2d342fc /src/wallet/wallet2.cpp | |
| parent | c6f26ecae280fa231ccc51e125bbf556ed6bbf9d (diff) | |
| parent | 4bb0bff2333fce80f0cd3b61a94dfcdb66002856 (diff) | |
| download | monzero-core-73e50749e23de068eeb09e4873a8b5563f4950b9.tar.gz monzero-core-73e50749e23de068eeb09e4873a8b5563f4950b9.tar.xz monzero-core-73e50749e23de068eeb09e4873a8b5563f4950b9.zip | |
Merge pull request #1455
4bb0bff2 AddressBook: use unsigned type for row ID's (anonimal)
Diffstat (limited to 'src/wallet/wallet2.cpp')
| -rw-r--r-- | src/wallet/wallet2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 60fa1d266..db4fae557 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -1569,14 +1569,14 @@ bool wallet2::add_address_book_row(const cryptonote::account_public_address &add a.m_payment_id = payment_id; a.m_description = description; - int old_size = m_address_book.size(); + auto old_size = m_address_book.size(); m_address_book.push_back(a); if(m_address_book.size() == old_size+1) return true; return false; } -bool wallet2::delete_address_book_row(int row_id) { +bool wallet2::delete_address_book_row(std::size_t row_id) { if(m_address_book.size() <= row_id) return false; |
