diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-08-15 09:08:42 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-08-15 10:06:08 +0300 |
commit | b051f4baa9f25e5d00fca941162b4515c76331ec (patch) | |
tree | d7ee7a713211027440d749459a42bfd4acbb57fc | |
parent | 57db6e24b5ad43d447c30e44a112c74c7e75b46b (diff) |
tdf#96099: Get rid of one more pointless typedef
Change-Id: I669b020f2f251ef14cbfff78f6e186876ea0127c
-rw-r--r-- | sc/inc/lookupcache.hxx | 3 | ||||
-rw-r--r-- | sc/source/core/tool/lookupcache.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sc/inc/lookupcache.hxx b/sc/inc/lookupcache.hxx index 905df00e5860..ef9d1521fad1 100644 --- a/sc/inc/lookupcache.hxx +++ b/sc/inc/lookupcache.hxx @@ -182,8 +182,7 @@ private: } }; - typedef std::unordered_map< QueryKey, QueryCriteriaAndResult, QueryKey::Hash > QueryMap; - QueryMap maQueryMap; + std::unordered_map< QueryKey, QueryCriteriaAndResult, QueryKey::Hash > maQueryMap; ScRange maRange; ScDocument * mpDoc; diff --git a/sc/source/core/tool/lookupcache.cxx b/sc/source/core/tool/lookupcache.cxx index c0140d9046b6..d0258946ac20 100644 --- a/sc/source/core/tool/lookupcache.cxx +++ b/sc/source/core/tool/lookupcache.cxx @@ -79,7 +79,7 @@ ScLookupCache::~ScLookupCache() ScLookupCache::Result ScLookupCache::lookup( ScAddress & o_rResultAddress, const QueryCriteria & rCriteria, const ScAddress & rQueryAddress ) const { - QueryMap::const_iterator it( maQueryMap.find( QueryKey( rQueryAddress, + auto it( maQueryMap.find( QueryKey( rQueryAddress, rCriteria.getQueryOp()))); if (it == maQueryMap.end()) return NOT_CACHED; |