From 4bb0bff2333fce80f0cd3b61a94dfcdb66002856 Mon Sep 17 00:00:00 2001 From: anonimal Date: Wed, 14 Dec 2016 21:37:49 +0000 Subject: AddressBook: use unsigned type for row ID's Fixes build warnings and may also prevent future headaches. --- src/wallet/api/address_book.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wallet/api/address_book.h') 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 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;} -- cgit v1.2.3