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:
Norman Feske 2015-05-18 11:40:35 +02:00 committed by Christian Helmuth
parent 8990346c6c
commit 35a52f0282

View File

@ -44,7 +44,7 @@ struct Genode::Trace::Policy_id
Policy_id() : id(0) { } Policy_id() : id(0) { }
Policy_id(unsigned id) : id(id) { } 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() : id(0) { }
Subject_id(unsigned id) : id(id) { } 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; }
}; };