summaryrefslogtreecommitdiff
path: root/include/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-19 11:14:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-19 12:41:48 +0200
commita759623c3f4bc0265b619ef2bcdff72045a1b5b3 (patch)
tree42833d8e6e82009fe5bd5ca3cc0e8d06fb109a61 /include/canvas
parent2ee60f02c456f39a80edb2dbfed48c3e0147a7f7 (diff)
loplugin:buriedassign in various
Change-Id: Ib79cbc89f2f89ff48ea8b59bd12373a10b9dcd62 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92495 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/canvas')
-rw-r--r--include/canvas/canvastools.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/canvas/canvastools.hxx b/include/canvas/canvastools.hxx
index 99b7433d279e..10f734cfebe3 100644
--- a/include/canvas/canvastools.hxx
+++ b/include/canvas/canvastools.hxx
@@ -511,12 +511,12 @@ namespace canvas
ValueType()
};
- const MapEntry* pRes;
const MapEntry* pEnd = mpMap+mnEntries;
- if( (pRes=::std::lower_bound( mpMap,
+ const MapEntry* pRes = ::std::lower_bound( mpMap,
pEnd,
aSearchKey,
- &mapComparator )) != pEnd )
+ &mapComparator );
+ if( pRes != pEnd )
{
// place to _insert before_ found - is it equal to
// the search key?