diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-21 13:29:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-21 13:43:06 +0100 |
commit | 26f46b861d8504033685b2eec4d003eef8109a27 (patch) | |
tree | d35bf900af9e17f0f7e17348c14aef9df74ef579 /basegfx/source/inc | |
parent | ca28826a087245686d7fca3ffc8ca1f03307924d (diff) |
loplugin:flatten in accessibility..basic
Change-Id: If2cc282c2b135d634daf393a082c29049b10a677
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127223
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/source/inc')
-rw-r--r-- | basegfx/source/inc/hommatrixtemplate.hxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/basegfx/source/inc/hommatrixtemplate.hxx b/basegfx/source/inc/hommatrixtemplate.hxx index 44f7cd8027cf..a80df114c3e3 100644 --- a/basegfx/source/inc/hommatrixtemplate.hxx +++ b/basegfx/source/inc/hommatrixtemplate.hxx @@ -174,26 +174,26 @@ namespace basegfx::internal void testLastLine() { - if(mpLine) - { - bool bNecessary(false); + if(!mpLine) + return; - for(sal_uInt16 a(0);!bNecessary && a < RowSize; a++) - { - const double fDefault(implGetDefaultValue((RowSize - 1), a)); - const double fLineValue(mpLine->get(a)); + bool bNecessary(false); - if(!::basegfx::fTools::equal(fDefault, fLineValue)) - { - bNecessary = true; - } - } + for(sal_uInt16 a(0);!bNecessary && a < RowSize; a++) + { + const double fDefault(implGetDefaultValue((RowSize - 1), a)); + const double fLineValue(mpLine->get(a)); - if(!bNecessary) + if(!::basegfx::fTools::equal(fDefault, fLineValue)) { - mpLine.reset(); + bNecessary = true; } } + + if(!bNecessary) + { + mpLine.reset(); + } } // Left-upper decomposition |