mirror of
https://github.com/august-alt/gpui.git
synced 2025-03-14 12:58:39 +03:00
fix: rewrite PolicyTree
type
This commit is contained in:
parent
c60dd637d0
commit
7bdd536575
@ -70,20 +70,20 @@ typedef struct PolicyInstruction
|
||||
{
|
||||
inline bool operator==(const PolicyInstruction &other) const
|
||||
{
|
||||
return type == other.type && data == other.data;
|
||||
return key == other.key && key == other.key && value == other.value && data == other.data;
|
||||
}
|
||||
inline bool operator!=(const PolicyInstruction &other) const
|
||||
{
|
||||
return type != other.type && data != other.data;
|
||||
return !this->operator==(other);
|
||||
}
|
||||
|
||||
PolicyRegType type{};
|
||||
PolicyData data{};
|
||||
std::string key{};
|
||||
std::string value{};
|
||||
} PolicyInstruction;
|
||||
|
||||
typedef std::unordered_map<std::string,
|
||||
std::unordered_map<std::string, std::vector<PolicyInstruction>>>
|
||||
PolicyTree;
|
||||
typedef std::vector<PolicyInstruction> PolicyTree;
|
||||
|
||||
typedef struct PolicyFile
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user