diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-04-14 19:45:15 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:46 +0200 |
commit | 414f2cafc6cf2fe141c011b0d63d447a9b983ac3 (patch) | |
tree | a0d53ca898b8586e7be97689fcb993d5405d08a0 /src/Group.cpp | |
parent | 53a1850ce2a253c574113684ac38c8ed31b1d0ae (diff) |
Store database storage to files, also loading
Diffstat (limited to 'src/Group.cpp')
-rw-r--r-- | src/Group.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Group.cpp b/src/Group.cpp index caf3e05..a99fdf6 100644 --- a/src/Group.cpp +++ b/src/Group.cpp @@ -6,13 +6,13 @@ using namespace std; namespace odhtdb { - Group::Group(const string &_name, uint8_t _id[16], const Permission &_permission) : + Group::Group(const string &_name, uint8_t _id[GROUP_ID_LENGTH], const Permission &_permission) : name(_name), permission(_permission) { if(name.size() > 255) throw GroupNameTooLongException(name); - memcpy(id, _id, 16); + memcpy(id, _id, GROUP_ID_LENGTH); } Group::~Group() @@ -32,7 +32,7 @@ namespace odhtdb DataView Group::getId() const { - return { (void*)id, 16 }; + return { (void*)id, GROUP_ID_LENGTH }; } const Permission& Group::getPermission() const |