diff options
author | artemp <artem@mapnik.org> | 2014-02-06 10:39:10 +0000 |
---|---|---|
committer | artemp <artem@mapnik.org> | 2014-02-06 10:39:10 +0000 |
commit | a8fef83564d9c70a887e32f4b398c99762779301 (patch) | |
tree | aea8872d649e0cf7db73ce33be2a4e7fe25770a1 /include/llmr/util/pbf.hpp | |
parent | d6654ccaed8b522b6de3156c1a271f6c60a67572 (diff) | |
download | qtlocation-mapboxgl-a8fef83564d9c70a887e32f4b398c99762779301.tar.gz |
c++
* use nullptr instead of NULL
Diffstat (limited to 'include/llmr/util/pbf.hpp')
-rw-r--r-- | include/llmr/util/pbf.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/llmr/util/pbf.hpp b/include/llmr/util/pbf.hpp index 5585d5c151..526bc68d32 100644 --- a/include/llmr/util/pbf.hpp +++ b/include/llmr/util/pbf.hpp @@ -46,8 +46,8 @@ struct pbf { inline void skipValue(uint32_t val); inline void skipBytes(uint32_t bytes); - const uint8_t *data = NULL; - const uint8_t *end = NULL; + const uint8_t *data = nullptr; + const uint8_t *end = nullptr; uint32_t value = 0; uint32_t tag = 0; }; @@ -60,8 +60,8 @@ pbf::pbf(const unsigned char *data, uint32_t length) } pbf::pbf() - : data(NULL), - end(NULL), + : data(nullptr), + end(nullptr), value(0), tag(0) { } @@ -185,4 +185,3 @@ void pbf::skipBytes(uint32_t bytes) { } // end namespace llmr #endif - |