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;
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user