removed unnecessary const_cast
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Mon, 21 Jul 2003 19:36:10 +0000 (19:36 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Mon, 21 Jul 2003 19:36:10 +0000 (19:36 +0000)
ginac/basic.cpp

index e2bbc3c..daac085 100644 (file)
@@ -696,7 +696,7 @@ unsigned basic::calchash() const
        unsigned v = golden_ratio_hash(tinfo());
        for (size_t i=0; i<nops(); i++) {
                v = rotate_left(v);
-               v ^= (const_cast<basic *>(this))->op(i).gethash();
+               v ^= this->op(i).gethash();
        }
 
        // store calculated hash value only if object is already evaluated