summaryrefslogtreecommitdiffstats
path: root/header.FDL
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2017-10-23 13:58:59 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2017-10-26 03:56:22 +0000
commit5b9f4a7130fce7fe31ad7a6c916e629e13c9888f (patch)
tree0f2a4db32a8967001e269a2bc0f59fc70b7df53a /header.FDL
parentfb1cf63d778a54965790efa1111184ce577d6d65 (diff)
QHstsCache - do not mix const/non-const iterators
Found by clazy (clazy-strict-iterators). QMap::find returns 'iterator' and this is what we need, since we need to modify the value referenced by this iterator. But QMap::insert only accepts 'const_iterator' and clazy warns about mixed const/non-const iterators (though actually QHstsCache does not have the original problem this check it trying to find). Since we do not share cache and do not want to try detaching on non-const access, we can use std::map which conveniently has 'insert' taking 'iterator' as its first parameter. As a bonus this will also fix another warning from clazy-range-loop check (when iterating over such a non-const map). Change-Id: Id82991cefce33723d177ed04058d15295e9b71d7 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'header.FDL')
0 files changed, 0 insertions, 0 deletions