diff options
author | nyamatongwe <unknown> | 2013-05-05 11:52:33 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-05-05 11:52:33 +1000 |
commit | d7acb6eca77b3a40f2cfcaf692de05dd532f4bf7 (patch) | |
tree | beb54c0553eb2e7b18b4165ac0d2d67f72ec0823 /src/PositionCache.cxx | |
parent | 6de91394f22148840aa1c4daa3c297d1e09aa0c2 (diff) | |
download | scintilla-mirror-d7acb6eca77b3a40f2cfcaf692de05dd532f4bf7.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++; } } |