]> granicus.if.org Git - re2c/commitdiff
- delete allows null
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 5 Jun 2006 22:12:44 +0000 (22:12 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 5 Jun 2006 22:12:44 +0000 (22:12 +0000)
re2c/code.cc

index 784b33ebc0967beed2bd3bb49486469acbd2d3fe..e7c8afcacdf2dfa9563f44cd1ec00060d5f8f590 100644 (file)
@@ -180,10 +180,7 @@ BitMap::BitMap(const Go *g, const State *x)
 
 BitMap::~BitMap()
 {
-       if (next)
-       {
-               delete next;
-       }
+       delete next;
 }
 
 const BitMap *BitMap::find(const Go *g, const State *x)