From a7c24ca48995cf2bf436156302f96b91bf135409 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 13 Nov 2017 15:03:31 +0100 Subject: Code modernize ... * replace 0/NULL with nullptr [using clang-tidy] --- plugins/Variables/src/lookup3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Variables/src/lookup3.cpp') diff --git a/plugins/Variables/src/lookup3.cpp b/plugins/Variables/src/lookup3.cpp index 7f28ed0498..ecc39f1352 100644 --- a/plugins/Variables/src/lookup3.cpp +++ b/plugins/Variables/src/lookup3.cpp @@ -221,7 +221,7 @@ uint32 hashlittle( void *key, size_t length, uint32 initval) /* Set up the internal state */ a = b = c = 0xdeadbeef + ((uint32)length) + initval; - if (HASH_LITTLE_ENDIAN && !((((uint8 *)key)-(uint8 *)0) & 0x3)) { + if (HASH_LITTLE_ENDIAN && !((((uint8 *)key)-(uint8 *)nullptr) & 0x3)) { uint32 *k = ( uint32 *)key; /* read 32-bit chunks */ /*------ all but last block: aligned reads and affect 32 bits of (a,b,c) */ @@ -253,7 +253,7 @@ uint32 hashlittle( void *key, size_t length, uint32 initval) case 0 : return c; /* zero length strings require no mixing */ } - } else if (HASH_LITTLE_ENDIAN && !((((uint8 *)key)-(uint8 *)0) & 0x1)) { + } else if (HASH_LITTLE_ENDIAN && !((((uint8 *)key)-(uint8 *)nullptr) & 0x1)) { uint16 *k = (uint16 *)key; /* read 16-bit chunks */ /*--------------- all but last block: aligned reads and different mixing */ @@ -360,7 +360,7 @@ uint32 hashbig( void *key, size_t length, uint32 initval) /* Set up the internal state */ a = b = c = 0xdeadbeef + ((uint32)length) + initval; - if (HASH_BIG_ENDIAN && !((((uint8 *)key)-(uint8 *)0) & 0x3)) { + if (HASH_BIG_ENDIAN && !((((uint8 *)key)-(uint8 *)nullptr) & 0x3)) { uint32 *k = (uint32 *)key; /* read 32-bit chunks */ /*------ all but last block: aligned reads and affect 32 bits of (a,b,c) */ -- cgit v1.2.3