systemc: Add a missing "const" on one of the sc_event operators.
authorGabe Black <gabeblack@google.com>
Fri, 9 Nov 2018 01:18:20 +0000 (17:18 -0800)
committerGabe Black <gabeblack@google.com>
Fri, 9 Nov 2018 01:28:00 +0000 (01:28 +0000)
Change-Id: I073ccb0f2c6d1bfebadb95869d6acf7f4ce565af
Reviewed-on: https://gem5-review.googlesource.com/c/14135
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/core/sc_event.cc
src/systemc/ext/core/sc_event.hh

index 75d5c8978b5e970289f0d0bf4c9e3214538a69ec..677425418ad2fa105e4ab1df764fff3008b27320 100644 (file)
@@ -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);
index e2164f4b83ab3b6724dca57a664b24adcdb9014c..7925e08b60e006e8845393aa88100b4229cbacd7 100644 (file)
@@ -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;