mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
base: const qualifiers in base/trace/types.h
This patch adds missing const qualifiers to the == operators of 'Subject_id' and 'Policy_id'. Thanks to Pirmin Duss for reporting.
This commit is contained in:
parent
8990346c6c
commit
35a52f0282
@ -44,7 +44,7 @@ struct Genode::Trace::Policy_id
|
||||
Policy_id() : id(0) { }
|
||||
Policy_id(unsigned id) : id(id) { }
|
||||
|
||||
bool operator == (Policy_id const &other) { return id == other.id; }
|
||||
bool operator == (Policy_id const &other) const { return id == other.id; }
|
||||
};
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ struct Genode::Trace::Subject_id
|
||||
Subject_id() : id(0) { }
|
||||
Subject_id(unsigned id) : id(id) { }
|
||||
|
||||
bool operator == (Subject_id const &other) { return id == other.id; }
|
||||
bool operator == (Subject_id const &other) const { return id == other.id; }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user