From 3b7289b006c4c78ecbdf21ebf4c68441319d3dbd Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Tue, 1 May 2018 11:59:15 +0200 Subject: Remove unnecessary dependency 'fmt' --- include/odhtdb/Database.hpp | 2 +- include/odhtdb/Group.hpp | 2 ++ include/odhtdb/Signature.hpp | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'include') 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 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 #include #include @@ -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); -- cgit v1.2.3