Codechange: Pass ContentInfo by reference.
Many functions take a ContentInfo pointer, but do not check for nullptr. Pass by reference instead to assure it is present.
This commit is contained in:
committed by
Peter Nelson
parent
1cfad1474a
commit
7b31f26611
@@ -242,12 +242,12 @@
|
||||
* @param md5sum whether to check the MD5 checksum
|
||||
* @return true iff we have an Game (library) matching.
|
||||
*/
|
||||
/* static */ bool Game::HasGame(const ContentInfo *ci, bool md5sum)
|
||||
/* static */ bool Game::HasGame(const ContentInfo &ci, bool md5sum)
|
||||
{
|
||||
return Game::scanner_info->HasScript(ci, md5sum);
|
||||
}
|
||||
|
||||
/* static */ bool Game::HasGameLibrary(const ContentInfo *ci, bool md5sum)
|
||||
/* static */ bool Game::HasGameLibrary(const ContentInfo &ci, bool md5sum)
|
||||
{
|
||||
return Game::scanner_library->HasScript(ci, md5sum);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user