summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorChris Wailes <chriswailes@google.com>2014-08-12 13:51:10 -0700
committerStephen Hines <srhines@google.com>2014-08-20 18:14:27 -0700
commit44bef6fba6244292b751387f3d6c31cca96c28ad (patch)
treea9dd48535a1f3343315bc75f7751cf042c05dc67 /api
parent4bb773ef75eeff5960852b733bcca5834020ee9e (diff)
downloadrs-44bef6fba6244292b751387f3d6c31cca96c28ad.tar.gz
Replace NULL macros with nullptr literals.
Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
Diffstat (limited to 'api')
-rw-r--r--api/gen_runtime.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/gen_runtime.cpp b/api/gen_runtime.cpp
index 6a46f35e..65682e55 100644
--- a/api/gen_runtime.cpp
+++ b/api/gen_runtime.cpp
@@ -693,7 +693,7 @@ bool SpecFile::readSpecFile() {
mLargestVersionNumber = 0;
while (1) {
Specification* spec = Specification::scanSpecification(specFile);
- if (spec == NULL) {
+ if (spec == nullptr) {
break;
}
getFunction(spec->getCleanName())->addSpecification(spec);
@@ -974,7 +974,7 @@ Specification* Specification::scanSpecification(FILE* in) {
return spec;
} else {
delete spec;
- return NULL;
+ return nullptr;
}
}
@@ -1037,7 +1037,7 @@ Specification* Specification::scanSpecification(FILE* in) {
}
delete spec;
- return NULL;
+ return nullptr;
}
void Specification::writeFiles(ofstream& headerFile, ofstream& rsFile, ofstream& javaFile,