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;
}
HashedObject::pointer obj(new HashedObject(htype, index, data));
HashedObject::pointer obj = boost::make_shared<HashedObject>(htype, index, data);
obj->mHash = hash;
#ifdef DEBUG
assert(obj->checkHash());
#endif
return obj;
}
// vim:ts=4