Codechange: Use unique_ptr for fios company properties.

This is the data used to show company names in the saveload window.
This commit is contained in:
Peter Nelson
2023-05-18 08:38:35 +01:00
committed by PeterN
parent bf8f24f9a8
commit 91e140c722
3 changed files with 4 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ enum SaveLoadInvalidateWindowData {
SLIWD_FILTER_CHANGES, ///< The filename filter has changed (via the editbox)
};
using CompanyPropertiesMap = std::map<uint, CompanyProperties *>;
using CompanyPropertiesMap = std::map<uint, std::unique_ptr<CompanyProperties>>;
/**
* Container for loading in mode SL_LOAD_CHECK.