diff options
author | anonimal <anonimal@i2pmail.org> | 2016-12-14 21:37:49 +0000 |
---|---|---|
committer | anonimal <anonimal@i2pmail.org> | 2016-12-14 21:37:49 +0000 |
commit | 4bb0bff2333fce80f0cd3b61a94dfcdb66002856 (patch) | |
tree | fe365f64e367e8150f30efee89152dc67d0e0233 /src/wallet/wallet2.cpp | |
parent | Merge pull request #1445 (diff) | |
download | monero-4bb0bff2333fce80f0cd3b61a94dfcdb66002856.tar.xz |
AddressBook: use unsigned type for row ID's
Fixes build warnings and may also prevent future headaches.
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; |