aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/RESearch.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-10-11 16:38:05 +1100
committerNeil <nyamatongwe@gmail.com>2018-10-11 16:38:05 +1100
commite462c018b9dda9e111a07d298bae8fcebb14c8b2 (patch)
tree03fec25e9b83d576f73d91facdd092e4eeece597 /src/RESearch.cxx
parent083b30ff1783f7b6c803d2c5489ddcd5d0dce14f (diff)
downloadscintilla-mirror-e462c018b9dda9e111a07d298bae8fcebb14c8b2.tar.gz
Backport: Replace NULL and 0 with nullptr in clear cases of pure C++ code.
Backport of changeset 7111:e3cecaf6bd37.
Diffstat (limited to 'src/RESearch.cxx')
-rw-r--r--src/RESearch.cxx4
1 files changed, 2 insertions, 2 deletions
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;
}
/*