summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-14 09:01:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-14 08:47:06 +0000
commit20a9e101d909cb1953101e5962b74731e1265400 (patch)
tree4e2516dcb7a5e19efb36fc4c2560b9211af83ce9 /svx
parent0761f97525b3f3ce2cd73f8db28bf389a3c44f57 (diff)
loplugin:constantparam
clean up the plugin a little, and try to catch params which are default constructed, which doesn't seem to be working yet Change-Id: Ife45f18502a45cd26306424b7432c55fcbb0fd12 Reviewed-on: https://gerrit.libreoffice.org/28861 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/engine3d/obj3d.cxx2
-rw-r--r--svx/source/svdraw/svdpage.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/engine3d/obj3d.cxx b/svx/source/engine3d/obj3d.cxx
index c7a7d93e4f10..54b0b429fe36 100644
--- a/svx/source/engine3d/obj3d.cxx
+++ b/svx/source/engine3d/obj3d.cxx
@@ -85,7 +85,7 @@ using namespace com::sun::star;
E3dObjList::E3dObjList()
-: SdrObjList(nullptr, nullptr, nullptr)
+: SdrObjList(nullptr, nullptr)
{
}
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index cbac68bbfbbc..9b987a725659 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -71,7 +71,7 @@ public:
static const sal_Int32 InitialObjectContainerCapacity (64);
-SdrObjList::SdrObjList(SdrModel* pNewModel, SdrPage* pNewPage, SdrObjList* pNewUpList):
+SdrObjList::SdrObjList(SdrModel* pNewModel, SdrPage* pNewPage):
maList(),
mxNavigationOrder(),
mbIsNavigationOrderDirty(false)
@@ -79,7 +79,7 @@ SdrObjList::SdrObjList(SdrModel* pNewModel, SdrPage* pNewPage, SdrObjList* pNewU
maList.reserve(InitialObjectContainerCapacity);
pModel=pNewModel;
pPage=pNewPage;
- pUpList=pNewUpList;
+ pUpList=nullptr;
bObjOrdNumsDirty=false;
bRectsDirty=false;
pOwnerObj=nullptr;