mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 20:54:40 +08:00
Switch NULL to C++11 nullptr in source/Symbol and source/Utility
Patch by Robert Matusewicz llvm-svn: 206713
This commit is contained in:
@@ -155,7 +155,7 @@ StringExtractor::GetU32 (uint32_t fail_value, int base)
|
||||
{
|
||||
if (m_index < m_packet.size())
|
||||
{
|
||||
char *end = NULL;
|
||||
char *end = nullptr;
|
||||
const char *start = m_packet.c_str();
|
||||
const char *cstr = start + m_index;
|
||||
uint32_t result = ::strtoul (cstr, &end, base);
|
||||
@@ -174,7 +174,7 @@ StringExtractor::GetS32 (int32_t fail_value, int base)
|
||||
{
|
||||
if (m_index < m_packet.size())
|
||||
{
|
||||
char *end = NULL;
|
||||
char *end = nullptr;
|
||||
const char *start = m_packet.c_str();
|
||||
const char *cstr = start + m_index;
|
||||
int32_t result = ::strtol (cstr, &end, base);
|
||||
@@ -194,7 +194,7 @@ StringExtractor::GetU64 (uint64_t fail_value, int base)
|
||||
{
|
||||
if (m_index < m_packet.size())
|
||||
{
|
||||
char *end = NULL;
|
||||
char *end = nullptr;
|
||||
const char *start = m_packet.c_str();
|
||||
const char *cstr = start + m_index;
|
||||
uint64_t result = ::strtoull (cstr, &end, base);
|
||||
@@ -213,7 +213,7 @@ StringExtractor::GetS64 (int64_t fail_value, int base)
|
||||
{
|
||||
if (m_index < m_packet.size())
|
||||
{
|
||||
char *end = NULL;
|
||||
char *end = nullptr;
|
||||
const char *start = m_packet.c_str();
|
||||
const char *cstr = start + m_index;
|
||||
int64_t result = ::strtoll (cstr, &end, base);
|
||||
|
||||
Reference in New Issue
Block a user