From dabc2b138deb02e73577bfc76d22445299abef16 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 8 Nov 2018 17:18:20 -0800 Subject: [PATCH] systemc: Add a missing "const" on one of the sc_event operators. Change-Id: I073ccb0f2c6d1bfebadb95869d6acf7f4ce565af Reviewed-on: https://gem5-review.googlesource.com/c/14135 Reviewed-by: Jason Lowe-Power Maintainer: Gabe Black --- src/systemc/core/sc_event.cc | 2 +- src/systemc/ext/core/sc_event.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systemc/core/sc_event.cc b/src/systemc/core/sc_event.cc index 75d5c8978..677425418 100644 --- a/src/systemc/core/sc_event.cc +++ b/src/systemc/core/sc_event.cc @@ -99,7 +99,7 @@ sc_event_and_list::operator & (const sc_event &e) const } sc_event_and_expr -sc_event_and_list::operator & (const sc_event_and_list &eal) +sc_event_and_list::operator & (const sc_event_and_list &eal) const { sc_event_and_expr expr; expr.insert(*this); diff --git a/src/systemc/ext/core/sc_event.hh b/src/systemc/ext/core/sc_event.hh index e2164f4b8..7925e08b6 100644 --- a/src/systemc/ext/core/sc_event.hh +++ b/src/systemc/ext/core/sc_event.hh @@ -76,7 +76,7 @@ class sc_event_and_list sc_event_and_list &operator &= (const sc_event_and_list &); sc_event_and_expr operator & (const sc_event &) const; - sc_event_and_expr operator & (const sc_event_and_list &); + sc_event_and_expr operator & (const sc_event_and_list &) const; private: friend class sc_event_and_expr; -- 2.30.2