diff options
author | nyamatongwe <devnull@localhost> | 2013-05-05 11:52:33 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-05 11:52:33 +1000 |
commit | 46f28c2d01bd405725df6e06d0eeb543bb9092f8 (patch) | |
tree | 623c7c1d96743351a979f0101943474730545ecb /src/PositionCache.cxx | |
parent | 1cc7b583576574d94e038692608f73df96964485 (diff) | |
download | scintilla-mirror-46f28c2d01bd405725df6e06d0eeb543bb9092f8.tar.gz |
Since new throws an exception on failure, remove testing of result.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 9fb045636..b03a97d38 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -309,12 +309,10 @@ LineLayout *LineLayoutCache::Retrieve(int lineNumber, int lineCaret, int maxChar if (!cache[pos]) { cache[pos] = new LineLayout(maxChars); } - if (cache[pos]) { - cache[pos]->lineNumber = lineNumber; - cache[pos]->inCache = true; - ret = cache[pos]; - useCount++; - } + cache[pos]->lineNumber = lineNumber; + cache[pos]->inCache = true; + ret = cache[pos]; + useCount++; } } |