From d6f16bfa14a0a46ab2d0aff697969ae051968181 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 22 May 2018 03:39:19 +0200 Subject: Follow cppcheck suggestions --- include/odhtdb/Database.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/odhtdb/Database.hpp b/include/odhtdb/Database.hpp index a5fcb60..5ec0da0 100644 --- a/include/odhtdb/Database.hpp +++ b/include/odhtdb/Database.hpp @@ -142,6 +142,14 @@ namespace odhtdb requestOldDataListenerFuture = other.requestOldDataListenerFuture; reponseKeyInfoHash = other.reponseKeyInfoHash; } + DatabaseSeedInfo& operator=(const DatabaseSeedInfo &other) + { + newDataListenerFuture = other.newDataListenerFuture; + responseKeyFuture = other.responseKeyFuture; + requestOldDataListenerFuture = other.requestOldDataListenerFuture; + reponseKeyInfoHash = other.reponseKeyInfoHash; + return *this; + } }; using CreateNodeCallbackFunc = std::function; @@ -178,7 +186,7 @@ namespace odhtdb // Throws PermissionDeniedException if user @userToPerformActionWith is not allowed to add user @userToAdd to group @groupToAddUserTo void addUser(const DatabaseNode &nodeInfo, const Signature::KeyPair &userToPerformActionWith, const Signature::PublicKey &userToAddPublicKey, const DataView &groupToAddUserTo); - ntp::NtpTimestamp getSyncedTimestampUtc() const; + static ntp::NtpTimestamp getSyncedTimestampUtc(); bool doesStoredUserExist(const std::string &username) const; -- cgit v1.2.3