style improvements

This commit is contained in:
JoelKatz
2012-05-09 17:07:57 -07:00
parent ca27ef99a5
commit 1cedf94c50

View File

@@ -115,11 +115,12 @@ HashedObject::pointer HashedObject::retrieve(const uint256& hash)
case 'N': htype = TRANSACTION_NODE; break; case 'N': htype = TRANSACTION_NODE; break;
} }
HashedObject::pointer obj(new HashedObject(htype, index, data)); HashedObject::pointer obj = boost::make_shared<HashedObject>(htype, index, data);
obj->mHash = hash; obj->mHash = hash;
#ifdef DEBUG #ifdef DEBUG
assert(obj->checkHash()); assert(obj->checkHash());
#endif #endif
return obj; return obj;
} }
// vim:ts=4 // vim:ts=4