From 9b029440bef5892184f3ae2d1680e7d26bfdf40f Mon Sep 17 00:00:00 2001 From: Bart Jongejan Date: Tue, 18 May 2021 21:17:11 +0200 Subject: [PATCH] ) = NULL --> ) = 0 for pure virtual functions --- src/caseconv.cpp | 2 +- src/text.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/caseconv.cpp b/src/caseconv.cpp index b0a6f8d..8738d6b 100644 --- a/src/caseconv.cpp +++ b/src/caseconv.cpp @@ -435,7 +435,7 @@ bool isAllUpperUTF8(const char * s) return isAllUpper(s,0); } -bool (*IsAllUpper)(const char * s) = NULL; +bool (*IsAllUpper)(const char * s) = 0; void AllToLowerISO(char * s) diff --git a/src/text.h b/src/text.h index 9e94cf3..b935ed3 100644 --- a/src/text.h +++ b/src/text.h @@ -94,7 +94,7 @@ class text bool InputHasTags; bool StartOfLine; private: - virtual const char* convert(const char* s, char* buf, const char* lastBufByte) = NULL; + virtual const char* convert(const char* s, char* buf, const char* lastBufByte) = 0; /*{ REFER(buf) REFER(lastBufByte) @@ -153,7 +153,7 @@ class text FILE* fpi #endif , optionStruct& Option - ) = NULL; + ) = 0; virtual ~text(); void createUnTaggedAlternatives( #ifndef CONSTSTRCHR