aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-05-22 03:39:19 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-05-22 03:39:22 +0200
commit27699207f857e06ac23707b55325565a2790e878 (patch)
tree3fb3ae179238a4d32c8de80496ca2816b1e5727d /include
parentf2cf653eb9967dc9ee26cbe7a43d1815bd526563 (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;