Use nullptr instead of NULL in Unix wxStackWalker code
Another place which should have been updated in 4f4c5fcfdf (Use nullptr
instead of NULL in the code and documentation, 2022-10-16) but wasn't.
This commit is contained in:
parent
9935a29c7f
commit
f27a7c5d00
1 changed files with 2 additions and 2 deletions
|
|
@ -308,7 +308,7 @@ struct ModuleInfo
|
|||
{
|
||||
}
|
||||
|
||||
// Name of the file containing this address, may be NULL.
|
||||
// Name of the file containing this address, may be null.
|
||||
const char* name;
|
||||
|
||||
// Difference between the address in the file and in memory.
|
||||
|
|
@ -322,7 +322,7 @@ ModuleInfo GetModuleInfoFromAddr(void* addr)
|
|||
if ( !dladdr1(addr, &info, (void**)&lm, RTLD_DL_LINKMAP) )
|
||||
{
|
||||
// Probably not worth spamming the user with even debug errors.
|
||||
return ModuleInfo(NULL, 0);
|
||||
return ModuleInfo(nullptr, 0);
|
||||
}
|
||||
|
||||
return ModuleInfo(info.dli_fname, lm->l_addr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue