Skip to content
Snippets Groups Projects
Verified Commit b0047f3e authored by Timm Fitschen's avatar Timm Fitschen
Browse files

STY: autoformatting

parent b4742f31
Branches
Tags
2 merge requests!42Release 0.2.0,!40F dot in username
Pipeline #24959 failed
This commit is part of merge request !40. Comments created here will be created in the context of that merge request.
......@@ -29,9 +29,9 @@
#ifndef CAOSDB_ACM_PERMISSION_RULE_H
#define CAOSDB_ACM_PERMISSION_RULE_H
#include <stddef.h> // for size_t
#include <stddef.h> // for size_t
#include <unordered_set> // for unordered_set
#include <string> // for string
#include <string> // for string
namespace caosdb::acm {
......@@ -52,12 +52,13 @@ public:
[[nodiscard]] auto GetPermission() const -> const std::string &;
auto operator==(const PermissionRule &other) const -> bool;
private:
PermissionRuleImpl *impl;
};
struct HashPermissionRule {
auto operator()(const PermissionRule& rule) const -> size_t;
auto operator()(const PermissionRule &rule) const -> size_t;
};
using PermissionRules = std::unordered_set<PermissionRule, HashPermissionRule>;
......
......@@ -23,9 +23,9 @@
#define CAOSDB_ACM_PERMISSION_RULE_IMPL_H
#include "caosdb/acm/role.h"
#include "caosdb/acm/v1alpha1/main.pb.h" // for ListRolesRequest
#include "caosdb/protobuf_helper.h" // for ProtoMessageWrapper
#include <utility> // for move
#include "caosdb/acm/v1alpha1/main.pb.h" // for ListRolesRequest
#include "caosdb/protobuf_helper.h" // for ProtoMessageWrapper
#include <utility> // for move
namespace caosdb::acm {
using caosdb::utility::ScalarProtoMessageWrapper;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment