EvenId const fixes.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Thu, 26 Jul 2007 12:05:31 +0100
changeset 981 eda90b17fc05
parent 980 469fb688f446
child 982 0798ff7ebe2e
EvenId const fixes.
src/simulator/event-id.cc
src/simulator/event-id.h
--- a/src/simulator/event-id.cc	Fri Jul 27 10:49:29 2007 -0700
+++ b/src/simulator/event-id.cc	Thu Jul 26 12:05:31 2007 +0100
@@ -45,12 +45,12 @@
     }
 }
 bool 
-EventId::IsExpired (void)
+EventId::IsExpired (void) const
 {
   return Simulator::IsExpired (*this);
 }
 bool 
-EventId::IsRunning (void)
+EventId::IsRunning (void) const
 {
   return !IsExpired ();
 }
--- a/src/simulator/event-id.h	Fri Jul 27 10:49:29 2007 -0700
+++ b/src/simulator/event-id.h	Thu Jul 26 12:05:31 2007 +0100
@@ -44,8 +44,8 @@
    * method.
    * \returns true if the event has expired, false otherwise.
    */
-  bool IsExpired (void);
-  bool IsRunning (void);
+  bool IsExpired (void) const;
+  bool IsRunning (void) const;
 public:
   /* The following methods are semi-private
    * they are supposed to be invoked only by