EXI_DeviceAGP: Pass string by reference

This commit is contained in:
Lioncash 2015-01-27 10:15:27 -05:00
parent 43605f8716
commit 7dc5bc622f
2 changed files with 6 additions and 6 deletions

View File

@ -63,7 +63,7 @@ void CEXIAgp::LoadRom()
INFO_LOG(EXPANSIONINTERFACE, "Loaded GBA sav: %s card: %d", gbapath.c_str(), m_slot);
}
void CEXIAgp::LoadFileToROM(std::string filename)
void CEXIAgp::LoadFileToROM(const std::string& filename)
{
File::IOFile pStream(filename, "rb");
if (pStream)
@ -83,7 +83,7 @@ void CEXIAgp::LoadFileToROM(std::string filename)
}
}
void CEXIAgp::LoadFileToEEPROM(std::string filename)
void CEXIAgp::LoadFileToEEPROM(const std::string& filename)
{
File::IOFile pStream(filename, "rb");
if (pStream)
@ -98,7 +98,7 @@ void CEXIAgp::LoadFileToEEPROM(std::string filename)
}
}
void CEXIAgp::SaveFileFromEEPROM(std::string filename)
void CEXIAgp::SaveFileFromEEPROM(const std::string& filename)
{
File::IOFile pStream(filename, "wb");
if (pStream)

View File

@ -47,9 +47,9 @@ private:
u8 m_eeprom_pos = 0;
u16 m_eeprom_cmd = 0;
void LoadFileToROM(std::string filename);
void LoadFileToEEPROM(std::string filename);
void SaveFileFromEEPROM(std::string filename);
void LoadFileToROM(const std::string& filename);
void LoadFileToEEPROM(const std::string& filename);
void SaveFileFromEEPROM(const std::string& filename);
void LoadHash();
void LoadRom();
void DoHash(u8* data, u32 size);