mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
style improvements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user