From 639fc60c100204c87b93112516cf3b3117cfff0d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 5 Dec 2014 01:02:51 +0100 Subject: Return false on error during read. --- store/database.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'store/database.h') diff --git a/store/database.h b/store/database.h index e752ff5..1cede39 100644 --- a/store/database.h +++ b/store/database.h @@ -16,8 +16,8 @@ public: bool write(const char *key, size_t keySize, const char *value, size_t valueSize); bool write(const std::string &sKey, const std::string &sValue); //Perhaps prefer iterators (assuming we need to be able to match multiple values - void read(const std::string &sKey, const std::function &); - void read(const std::string &sKey, const std::function &); + bool read(const std::string &sKey, const std::function &); + bool read(const std::string &sKey, const std::function &); qint64 diskUsage() const; void removeFromDisk() const; -- cgit v1.2.3