From 3583b7478fe79d206b44bcb3d19a8ca9a72e51b3 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 1 Jun 2012 15:41:37 -0700 Subject: [PATCH] Cleanup. --- src/SerializedTypes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SerializedTypes.h b/src/SerializedTypes.h index 70e366086..f9c68a2e1 100644 --- a/src/SerializedTypes.h +++ b/src/SerializedTypes.h @@ -68,7 +68,8 @@ public: virtual void add(Serializer& s) const { return; } - virtual bool isEquivalent(const SerializedType& t) const { return true; } + virtual bool isEquivalent(const SerializedType& t) const + { assert(getSType() == STI_NOTPRESENT); return t.getSType() == STI_NOTPRESENT; } bool operator==(const SerializedType& t) const { return (getSType() == t.getSType()) && isEquivalent(t); }