From c804e5578b41b3523e5cb933fd40d08ba132b347 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 11 Oct 2018 16:38:05 +1100 Subject: Replace NULL and 0 with nullptr in clear cases of pure C++ code. --- src/RESearch.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/RESearch.cxx') diff --git a/src/RESearch.cxx b/src/RESearch.cxx index d29549ac2..5ce073a44 100644 --- a/src/RESearch.cxx +++ b/src/RESearch.cxx @@ -445,7 +445,7 @@ const char *RESearch::Compile(const char *pattern, Sci::Position length, bool ca if (!pattern || !length) { if (sta) - return 0; + return nullptr; else return badpat("No previous regular expression"); } @@ -727,7 +727,7 @@ const char *RESearch::Compile(const char *pattern, Sci::Position length, bool ca return badpat((posix ? "Unmatched (" : "Unmatched \\(")); *mp = END; sta = OKP; - return 0; + return nullptr; } /* -- cgit v1.2.3