mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
auto_ptr semantics are a bit odd
This commit is contained in:
@@ -884,7 +884,7 @@ STAmount STAmount::convertToInternalAmount(uint64 displayAmount, uint64 totalNow
|
||||
|
||||
STAmount STAmount::deserialize(SerializerIterator& it)
|
||||
{
|
||||
auto_ptr<STAmount> s = construct(it, sfGeneric);
|
||||
std::auto_ptr<STAmount> s(dynamic_cast<STAmount*>(construct(it, sfGeneric)));
|
||||
STAmount ret(*s);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user