summaryrefslogtreecommitdiff
path: root/cppcanvas/source/mtfrenderer
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-14 14:55:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-14 16:35:38 +0200
commit11785217594d863efb518aa8b8f2910cdcb9c59d (patch)
treed8460fe0e3a9ee4212d7bd964c2fd3ee0d9074b4 /cppcanvas/source/mtfrenderer
parent14471a694271777440c19916055d659337c0fb8d (diff)
loplugin:buriedassign in c*
Change-Id: Id14fed7e5c0f588ad3c927f12251432d12c1a7c8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92190 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas/source/mtfrenderer')
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index 14e3981547d5..db2edcd3bde1 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -1628,9 +1628,11 @@ namespace cppcanvas::internal
{
MetaGradientExAction* pGradAction = nullptr;
bool bDone( false );
- while( !bDone &&
- (pCurrAct=rMtf.NextAction()) != nullptr )
+ while( !bDone )
{
+ pCurrAct=rMtf.NextAction();
+ if (!pCurrAct)
+ break;
switch( pCurrAct->GetType() )
{
// extract gradient info