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/WebView/src/webview_cleanup.cpp | 52 ++++++++++++++++----------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'plugins/WebView/src/webview_cleanup.cpp') diff --git a/plugins/WebView/src/webview_cleanup.cpp b/plugins/WebView/src/webview_cleanup.cpp index 11c7558f9c..31d081e15c 100644 --- a/plugins/WebView/src/webview_cleanup.cpp +++ b/plugins/WebView/src/webview_cleanup.cpp @@ -374,8 +374,8 @@ void CodetoSymbol(char *truncated) while (true) { // loop forever Sleep(1); // avoid 100% CPU - if ( strstr(truncated, CharacterCodes[n]) != 0) { // does character code exist? - if (strstr(truncated, CharacterCodes[n]) != 0) + if ( strstr(truncated, CharacterCodes[n]) != nullptr) { // does character code exist? + if (strstr(truncated, CharacterCodes[n]) != nullptr) stringfrompos = strstr(truncated, CharacterCodes[n]); position = stringfrompos - truncated; @@ -415,25 +415,25 @@ void EraseBlock(char *truncated) Sleep(1); // avoid 100% CPU // /get start and end of block - if (strstr(tempraw, "") != 0) // does tag exist? + if (strstr(tempraw, "-->") != nullptr) // does tag exist? { stringfrompos = strstr(tempraw, "-->"); positionEnd = stringfrompos - tempraw; } BlockLength = (positionEnd - positionStart) + 3; - if ((strstr(tempraw, "") == 0)) + if ((strstr(tempraw, "") == nullptr)) break; ///////////////////////////////////////// - if (strstr(tempraw, "