Codechange: Pass ini file by reference and prefer automatic storage.
This avoids new/delete operations, and (not) checking for nullptr.
This commit is contained in:

committed by
Peter Nelson

parent
3961318974
commit
0c85ce29ea
@@ -347,11 +347,11 @@ void GfxLoadSprites()
|
||||
UpdateCursorSize();
|
||||
}
|
||||
|
||||
bool GraphicsSet::FillSetDetails(IniFile *ini, const std::string &path, const std::string &full_filename)
|
||||
bool GraphicsSet::FillSetDetails(IniFile &ini, const std::string &path, const std::string &full_filename)
|
||||
{
|
||||
bool ret = this->BaseSet<GraphicsSet, MAX_GFT, true>::FillSetDetails(ini, path, full_filename, false);
|
||||
if (ret) {
|
||||
IniGroup *metadata = ini->GetGroup("metadata");
|
||||
IniGroup *metadata = ini.GetGroup("metadata");
|
||||
IniItem *item;
|
||||
|
||||
fetch_metadata("palette");
|
||||
|
Reference in New Issue
Block a user