auto_ptr
This commit is contained in:
@@ -135,9 +135,8 @@ void Bookkeeper::WriteToDisk()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
XNode *xml = CreateNode();
|
auto_ptr<XNode> xml( CreateNode() );
|
||||||
XmlFileUtil::SaveToFile( xml, f );
|
XmlFileUtil::SaveToFile( xml.get(), f );
|
||||||
delete xml;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Bookkeeper::CoinInserted()
|
void Bookkeeper::CoinInserted()
|
||||||
|
|||||||
Reference in New Issue
Block a user