mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
Clean up pointer use:
* Use unique_ptr for Actions instead of manual memory management * Use unique_ptr in KeywordDatabase * Use unique_ptr instead of shared_ptr for file formats * Don't pass shared_ptr to Reader/Writer, use references instead Also * Switch to C++17 so we can use map::try_emplace
This commit is contained in:
@@ -17,10 +17,10 @@ using boost::tribool;
|
||||
|
||||
// ----------------------------------------------------------------------------- : Writer
|
||||
|
||||
Writer::Writer(const OutputStreamP& output, Version file_app_version)
|
||||
Writer::Writer(OutputStream& output, Version file_app_version)
|
||||
: indentation(0)
|
||||
, output(output)
|
||||
, stream(*output, wxEOL_UNIX, wxMBConvUTF8())
|
||||
, stream(output, wxEOL_UNIX, wxMBConvUTF8())
|
||||
{
|
||||
stream.WriteString(BYTE_ORDER_MARK);
|
||||
handle(_("mse_version"), file_app_version);
|
||||
|
||||
Reference in New Issue
Block a user