mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
Replace NULL with nullptr (#1321)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
struct Assertion {
|
||||
Patch patch; // Also used for its `.type`
|
||||
std::string message;
|
||||
// This would be redundant with `.section->fileSymbols`... but `section` is sometimes NULL!
|
||||
// This would be redundant with `.section->fileSymbols`, but `section` is sometimes `nullptr`!
|
||||
std::vector<Symbol> *fileSymbols;
|
||||
};
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ void sect_AddSection(Section *section);
|
||||
/*
|
||||
* Finds a section by its name.
|
||||
* @param name The name of the section to look for
|
||||
* @return A pointer to the section, or NULL if it wasn't found
|
||||
* @return A pointer to the section, or `nullptr` if it wasn't found
|
||||
*/
|
||||
Section *sect_GetSection(std::string const &name);
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ void sym_AddSymbol(Symbol *symbol);
|
||||
/*
|
||||
* Finds a symbol in all the defined symbols.
|
||||
* @param name The name of the symbol to look for
|
||||
* @return A pointer to the symbol, or NULL if not found.
|
||||
* @return A pointer to the symbol, or `nullptr` if not found.
|
||||
*/
|
||||
Symbol *sym_GetSymbol(std::string const &name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user