diff options
| author | Matthew Parlane <parlane@gmail.com> | 2014-03-10 09:24:09 +1300 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2014-03-10 09:24:09 +1300 |
| commit | 633dc75e857d649ffab7c4398e92536bccc9e1de (patch) | |
| tree | f9aa8831a0731ea246bd921d979f4bffa7f07bd0 /Source/Core/Common/ArmCPUDetect.cpp | |
| parent | f4012638672472afdbd9956229f273a18a77fd77 (diff) | |
| parent | d802d392811be44d34ae9cd23f616db93e54c50f (diff) | |
Merge pull request #142 from Tilka/clang-modernize
Run clang-modernize and manually fix the result
Diffstat (limited to 'Source/Core/Common/ArmCPUDetect.cpp')
| -rw-r--r-- | Source/Core/Common/ArmCPUDetect.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/Common/ArmCPUDetect.cpp b/Source/Core/Common/ArmCPUDetect.cpp index 12998e1bde..80908b8992 100644 --- a/Source/Core/Common/ArmCPUDetect.cpp +++ b/Source/Core/Common/ArmCPUDetect.cpp @@ -14,7 +14,7 @@ const char procfile[] = "/proc/cpuinfo"; char *GetCPUString() { const char marker[] = "Hardware\t: "; - char *cpu_string = 0; + char *cpu_string = nullptr; // Count the number of processor lines in /proc/cpuinfo char buf[1024]; @@ -38,7 +38,7 @@ char *GetCPUString() unsigned char GetCPUImplementer() { const char marker[] = "CPU implementer\t: "; - char *implementer_string = 0; + char *implementer_string = nullptr; unsigned char implementer = 0; char buf[1024]; @@ -65,7 +65,7 @@ unsigned char GetCPUImplementer() unsigned short GetCPUPart() { const char marker[] = "CPU part\t: "; - char *part_string = 0; + char *part_string = nullptr; unsigned short part = 0; char buf[1024]; @@ -105,11 +105,11 @@ bool CheckCPUFeature(const char *feature) continue; char *featurestring = buf + sizeof(marker) - 1; char *token = strtok(featurestring, " "); - while (token != NULL) + while (token != nullptr) { if (strstr(token, feature)) return true; - token = strtok(NULL, " "); + token = strtok(nullptr, " "); } } |
