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/api | |
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/api')
-rw-r--r-- | src/wallet/api/address_book.cpp | 2 | ||||
-rw-r--r-- | src/wallet/api/address_book.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/api/address_book.cpp b/src/wallet/api/address_book.cpp index 1847e1496..bbf96c81a 100644 --- a/src/wallet/api/address_book.cpp +++ b/src/wallet/api/address_book.cpp @@ -94,7 +94,7 @@ void AddressBookImpl::refresh() } -bool AddressBookImpl::deleteRow(int rowId) +bool AddressBookImpl::deleteRow(std::size_t rowId) { LOG_PRINT_L2("Deleting address book row " << rowId); bool r = m_wallet->m_wallet->delete_address_book_row(rowId); diff --git a/src/wallet/api/address_book.h b/src/wallet/api/address_book.h index c3a24eff9..7f30e4387 100644 --- a/src/wallet/api/address_book.h +++ b/src/wallet/api/address_book.h @@ -46,7 +46,7 @@ public: void refresh(); std::vector<AddressBookRow*> getAll() const; bool addRow(const std::string &dst_addr , const std::string &payment_id, const std::string &description); - bool deleteRow(int rowId); + bool deleteRow(std::size_t rowId); // Error codes. See AddressBook:ErrorCode enum in wallet2_api.h std::string errorString() const {return m_errorString;} |