summaryrefslogtreecommitdiff
path: root/extensions/source/dbpilots
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-14 15:44:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-14 20:38:31 +0200
commit9693b491295336955f7ce8359284b67a82ecf28f (patch)
tree0338cd2a61173c4c91dae5c85578e73a650f8702 /extensions/source/dbpilots
parent6e44d68b2beba30efc48bdaf3e8f00e236bf53f2 (diff)
loplugin:flatten in extensions
Change-Id: I58b5a2c12e464e568c4f66d398bbf0b1d8afc154 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92195 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions/source/dbpilots')
-rw-r--r--extensions/source/dbpilots/controlwizard.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/extensions/source/dbpilots/controlwizard.cxx b/extensions/source/dbpilots/controlwizard.cxx
index aae97ab5a8d7..18b3c9489f99 100644
--- a/extensions/source/dbpilots/controlwizard.cxx
+++ b/extensions/source/dbpilots/controlwizard.cxx
@@ -256,23 +256,23 @@ namespace dbp
// for comparing the model
Reference< XControlModel > xModelCompare(m_aContext.xObjectModel, UNO_QUERY);
- if (xPageObjects.is())
+ if (!xPageObjects.is())
+ return;
+
+ // loop through all objects of the page
+ sal_Int32 nObjects = xPageObjects->getCount();
+ Reference< XControlShape > xControlShape;
+ Reference< XControlModel > xControlModel;
+ for (sal_Int32 i=0; i<nObjects; ++i)
{
- // loop through all objects of the page
- sal_Int32 nObjects = xPageObjects->getCount();
- Reference< XControlShape > xControlShape;
- Reference< XControlModel > xControlModel;
- for (sal_Int32 i=0; i<nObjects; ++i)
- {
- if (xPageObjects->getByIndex(i) >>= xControlShape)
- { // it _is_ a control shape
- xControlModel = xControlShape->getControl();
- DBG_ASSERT(xControlModel.is(), "OControlWizard::implDetermineShape: control shape without model!");
- if (xModelCompare.get() == xControlModel.get())
- {
- m_aContext.xObjectShape = xControlShape;
- break;
- }
+ if (xPageObjects->getByIndex(i) >>= xControlShape)
+ { // it _is_ a control shape
+ xControlModel = xControlShape->getControl();
+ DBG_ASSERT(xControlModel.is(), "OControlWizard::implDetermineShape: control shape without model!");
+ if (xModelCompare.get() == xControlModel.get())
+ {
+ m_aContext.xObjectShape = xControlShape;
+ break;
}
}
}