From da74fac3e81338d08b8b0c196b92bc298be9673e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 12 Jul 2009 23:01:15 +0000 Subject: Since exception handling now turned on, do not check return value from new. --- src/Document.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Document.cxx') 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] == '\\') { -- cgit v1.2.3