aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-22 03:39:19 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commitd6f16bfa14a0a46ab2d0aff697969ae051968181 (patch)
treee813258b43e35d7dfccff537010884e90683fda0 /include
parentac626d47ebd49188458d70f98c6d871b1b7e3f50 (diff)
Follow cppcheck suggestions
Diffstat (limited to 'include')
-rw-r--r--include/odhtdb/Database.hpp10
1 files changed, 9 insertions, 1 deletions
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<void(const DatabaseCreateNodeRequest&)>;
@@ -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;