diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-01 11:59:15 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:46 +0200 |
commit | 58819e501f2705a7d1dd678eb0112e97697e4366 (patch) | |
tree | c3933e5c556e36000d50dd875192acc40a63ffca /include | |
parent | f416f33d7cf879f543be9c804c20b0c9cb76de4d (diff) |
Remove unnecessary dependency 'fmt'
Diffstat (limited to 'include')
-rw-r--r-- | include/odhtdb/Database.hpp | 2 | ||||
-rw-r--r-- | include/odhtdb/Group.hpp | 2 | ||||
-rw-r--r-- | include/odhtdb/Signature.hpp | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/include/odhtdb/Database.hpp b/include/odhtdb/Database.hpp index 18ae5a1..e34fd9d 100644 --- a/include/odhtdb/Database.hpp +++ b/include/odhtdb/Database.hpp @@ -163,7 +163,7 @@ namespace odhtdb // Throws PermissionDeniedException if user @userToPerformActionWith is not allowed to add data to node void addData(const DatabaseNode &nodeInfo, const LocalUser *userToPerformActionWith, DataView dataToAdd); // Throws PermissionDeniedException if user @userToPerformActionWith is not allowed to add user @userToAdd to group @groupToAddUserTo - void addUser(const DatabaseNode &nodeInfo, LocalUser *userToPerformActionWith, const std::string &userToAddName, const Signature::PublicKey &userToAddPublicKey, Group *groupToAddUserTo); + void addUser(const DatabaseNode &nodeInfo, const LocalUser *userToPerformActionWith, const std::string &userToAddName, const Signature::PublicKey &userToAddPublicKey, Group *groupToAddUserTo); void commit(); void setOnCreateNodeCallback(std::function<void(const DatabaseCreateNodeRequest&)> callbackFunc); diff --git a/include/odhtdb/Group.hpp b/include/odhtdb/Group.hpp index cd28923..99307e1 100644 --- a/include/odhtdb/Group.hpp +++ b/include/odhtdb/Group.hpp @@ -3,6 +3,7 @@ #include "types.hpp" #include "DataView.hpp" #include "Permission.hpp" +#include "utils.hpp" #include <string> #include <vector> #include <stdexcept> @@ -25,6 +26,7 @@ namespace odhtdb class Group { + DISABLE_COPY(Group) friend class User; public: Group(const std::string &name, uint8_t id[GROUP_ID_LENGTH], const Permission &permission); diff --git a/include/odhtdb/Signature.hpp b/include/odhtdb/Signature.hpp index 270b099..dac856b 100644 --- a/include/odhtdb/Signature.hpp +++ b/include/odhtdb/Signature.hpp @@ -53,7 +53,7 @@ namespace odhtdb { friend class KeyPair; public: - static PublicKey ZERO; + const static PublicKey ZERO; // Throws InvalidSignatureKeySize if size is not PUBLIC_KEY_NUM_BYTES PublicKey(const char *data, size_t size); @@ -93,7 +93,7 @@ namespace odhtdb { friend class KeyPair; public: - static PrivateKey ZERO; + const static PrivateKey ZERO; // Throws InvalidSignatureKeySize if size is not PRIVATE_KEY_NUM_BYTES PrivateKey(const char *data, size_t size); |