aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-07-12 23:01:15 +0000
committernyamatongwe <devnull@localhost>2009-07-12 23:01:15 +0000
commitda74fac3e81338d08b8b0c196b92bc298be9673e (patch)
tree6a8eb71edc5b0f713eac8704ff7fb63b1cf00afc /src/PositionCache.cxx
parente88520dcbd24f2bcbf6ebe9d49cb2370b9ce8cd1 (diff)
downloadscintilla-mirror-da74fac3e81338d08b8b0c196b92bc298be9673e.tar.gz
Since exception handling now turned on, do not check return value from new.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r--src/PositionCache.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx
index 42f5fa3f3..d3e19d4f4 100644
--- a/src/PositionCache.cxx
+++ b/src/PositionCache.cxx
@@ -131,8 +131,6 @@ void LineLayout::SetLineStart(int line, int start) {
if ((line >= lenLineStarts) && (line != 0)) {
int newMaxLines = line + 20;
int *newLineStarts = new int[newMaxLines];
- if (!newLineStarts)
- return;
for (int i = 0; i < newMaxLines; i++) {
if (i < lenLineStarts)
newLineStarts[i] = lineStarts[i];