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:
Peter Nelson
2025-04-10 07:37:28 +01:00
committed by Peter Nelson
parent 1cfad1474a
commit 7b31f26611
17 changed files with 94 additions and 94 deletions

View File

@@ -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);
}