Restore the caching functionality in StringCache::location
authorMilian Wolff <milian.wolff@kdab.com>
Tue, 23 May 2017 15:26:23 +0000 (17:26 +0200)
committerMilian Wolff <milian.wolff@kdab.com>
Tue, 23 May 2017 15:28:15 +0000 (17:28 +0200)
commiteb9c84cf7ad73bf3065ce140dcd80898cb0fcd96
tree297fc03167b5ecaf771fe2608c83fb5ee5941c34
parentc98495f7e7ede203319cacf82ded869f1ae91711
Restore the caching functionality in StringCache::location

The patch 1b9a59dc broke this by refactoring the code. It forgot
to store the non-cached value back in the faster lookup table.
See the original patch c370b7be for the advantage this fast-path
can bring.
src/analyze/gui/parser.cpp