The big NULL replacement party part 6.
...and ', NULL' had even more to replace.
This commit is contained in:
+6
-6
@@ -149,7 +149,7 @@ namespace
|
||||
{
|
||||
LIST_METHOD( Seed ),
|
||||
LIST_METHOD( Random ),
|
||||
{ NULL, NULL }
|
||||
{ NULL, nullptr }
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1347,12 +1347,12 @@ void Regex::Compile()
|
||||
{
|
||||
const char *error;
|
||||
int offset;
|
||||
m_pReg = pcre_compile( m_sPattern.c_str(), PCRE_CASELESS, &error, &offset, NULL );
|
||||
m_pReg = pcre_compile( m_sPattern.c_str(), PCRE_CASELESS, &error, &offset, nullptr );
|
||||
|
||||
if( m_pReg == nullptr )
|
||||
RageException::Throw( "Invalid regex: \"%s\" (%s).", m_sPattern.c_str(), error );
|
||||
|
||||
int iRet = pcre_fullinfo( (pcre *) m_pReg, NULL, PCRE_INFO_CAPTURECOUNT, &m_iBackrefs );
|
||||
int iRet = pcre_fullinfo( (pcre *) m_pReg, nullptr, PCRE_INFO_CAPTURECOUNT, &m_iBackrefs );
|
||||
ASSERT( iRet >= 0 );
|
||||
|
||||
++m_iBackrefs;
|
||||
@@ -1398,7 +1398,7 @@ Regex::~Regex()
|
||||
bool Regex::Compare( const RString &sStr )
|
||||
{
|
||||
int iMat[128*3];
|
||||
int iRet = pcre_exec( (pcre *) m_pReg, NULL, sStr.data(), sStr.size(), 0, 0, iMat, 128*3 );
|
||||
int iRet = pcre_exec( (pcre *) m_pReg, nullptr, sStr.data(), sStr.size(), 0, 0, iMat, 128*3 );
|
||||
|
||||
if( iRet < -1 )
|
||||
RageException::Throw( "Unexpected return from pcre_exec('%s'): %i.", m_sPattern.c_str(), iRet );
|
||||
@@ -1411,7 +1411,7 @@ bool Regex::Compare( const RString &sStr, vector<RString> &asMatches )
|
||||
asMatches.clear();
|
||||
|
||||
int iMat[128*3];
|
||||
int iRet = pcre_exec( (pcre *) m_pReg, NULL, sStr.data(), sStr.size(), 0, 0, iMat, 128*3 );
|
||||
int iRet = pcre_exec( (pcre *) m_pReg, nullptr, sStr.data(), sStr.size(), 0, 0, iMat, 128*3 );
|
||||
|
||||
if( iRet < -1 )
|
||||
RageException::Throw( "Unexpected return from pcre_exec('%s'): %i.", m_sPattern.c_str(), iRet );
|
||||
@@ -1767,7 +1767,7 @@ RString IntToString( const int &iNum )
|
||||
|
||||
float StringToFloat( const RString &sString )
|
||||
{
|
||||
float ret = strtof( sString, NULL );
|
||||
float ret = strtof( sString, nullptr );
|
||||
|
||||
if( !isfinite(ret) )
|
||||
ret = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user