Good overridance with the good qualifier

This commit is contained in:
Julien Sentier 2012-02-23 12:58:52 +01:00 committed by Robin Sommer
parent b84fd05912
commit 7dfb5657a2
2 changed files with 2 additions and 2 deletions

View file

@ -410,7 +410,7 @@ Val* Trigger::Lookup(const CallExpr* expr)
return (i != cache.end()) ? i->second : 0;
}
const char* Trigger::Name()
const char* Trigger::Name() const
{
assert(location);
return fmt("%s:%d-%d", location->filename,

View file

@ -60,7 +60,7 @@ public:
virtual void Access(Val* val, const StateAccess& sa)
{ QueueTrigger(this); }
virtual const char* Name();
virtual const char* Name() const;
static void QueueTrigger(Trigger* trigger);