diff options
author | nyamatongwe <unknown> | 2009-07-12 23:01:15 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-07-12 23:01:15 +0000 |
commit | 26c0795acabf1964ac9ba6dc7e212d58d9714c83 (patch) | |
tree | 6a8eb71edc5b0f713eac8704ff7fb63b1cf00afc /src/Document.cxx | |
parent | ec9967718cd454c3966e968266e753ed069d51bd (diff) | |
download | scintilla-mirror-26c0795acabf1964ac9ba6dc7e212d58d9714c83.tar.gz |
Since exception handling now turned on, do not check return value from new.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 5fd2749a0..0eb511162 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1760,8 +1760,6 @@ const char *BuiltinRegex::SubstituteByPosition(Document* doc, const char *text, } } substituted = new char[lenResult + 1]; - if (!substituted) - return 0; char *o = substituted; for (int j = 0; j < *length; j++) { if (text[j] == '\\') { |