Skip to content

Commit 4f239cc

Browse files
Replace NULL by nullptr in C++ include files
1 parent 640aac7 commit 4f239cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cores/arduino/Callback.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Callback {
6161
bool queue();
6262
void call();
6363

64-
operator bool() { return (_callback != NULL); }
64+
operator bool() { return (_callback != nullptr); }
6565

6666
private:
6767
void (*_callback)(void*);

cores/arduino/FS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class DirEntry
120120

121121
DirEntry() { _info.type = DT_UNKNOWN; }
122122

123-
const char *name() { return (_info.type == DT_UNKNOWN) ? NULL : _info.name; }
123+
const char *name() { return (_info.type == DT_UNKNOWN) ? nullptr : _info.name; }
124124
size_t fileSize() { return (_info.type == DT_UNKNOWN) ? 0 : _info.size; };
125125
bool isDirectory() { return _info.type == DT_DIR; }
126126
bool isFile() { return _info.type == DT_REG; }

libraries/LoRaWAN/src/LoRaWAN.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class LoRaWANClass : public Stream
116116
int begin(const struct LoRaWANBand &band);
117117

118118
int joinOTAA();
119-
int joinOTAA(const char *appEui, const char *appKey, const char *devEui = NULL);
119+
int joinOTAA(const char *appEui, const char *appKey, const char *devEui = nullptr);
120120
int rejoinOTAA();
121121

122122
int joinABP();

0 commit comments

Comments
 (0)