From 35a52f0282addcd02be43973846a2dc53b5cfe61 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 18 May 2015 11:40:35 +0200 Subject: [PATCH] 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. --- repos/base/include/base/trace/types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/base/include/base/trace/types.h b/repos/base/include/base/trace/types.h index bc4db21393..b096eddb9d 100644 --- a/repos/base/include/base/trace/types.h +++ b/repos/base/include/base/trace/types.h @@ -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; } };