diff options
author | nyamatongwe <devnull@localhost> | 2009-07-12 23:01:15 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-07-12 23:01:15 +0000 |
commit | da74fac3e81338d08b8b0c196b92bc298be9673e (patch) | |
tree | 6a8eb71edc5b0f713eac8704ff7fb63b1cf00afc /src/Document.cxx | |
parent | e88520dcbd24f2bcbf6ebe9d49cb2370b9ce8cd1 (diff) | |
download | scintilla-mirror-da74fac3e81338d08b8b0c196b92bc298be9673e.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] == '\\') { |