From 8a8981c603d2f45d0fac656e5b4b31bcabfabc92 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 9 Dec 2013 13:19:21 +0000 Subject: GetBasic and m_pBasic are unused which is probably a good thing because it is zeroed in the copy ctor which looks rather dubious Change-Id: Ia082601982aaea5df92cf7aa9724cbe187716e0c --- sc/inc/drawpage.hxx | 2 +- sc/source/core/data/drawpage.cxx | 4 ++-- sc/source/core/data/drwlayer.cxx | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) (limited to 'sc') diff --git a/sc/inc/drawpage.hxx b/sc/inc/drawpage.hxx index e2ee683ddc80..711384f55cab 100644 --- a/sc/inc/drawpage.hxx +++ b/sc/inc/drawpage.hxx @@ -28,7 +28,7 @@ class ScDrawLayer; class ScDrawPage: public FmFormPage { public: - ScDrawPage(ScDrawLayer& rNewModel, StarBASIC* pBasic, bool bMasterPage = false); + ScDrawPage(ScDrawLayer& rNewModel, bool bMasterPage = false); ~ScDrawPage(); virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > createUnoPage(); diff --git a/sc/source/core/data/drawpage.cxx b/sc/source/core/data/drawpage.cxx index 43c624e66f20..64c8c7704e76 100644 --- a/sc/source/core/data/drawpage.cxx +++ b/sc/source/core/data/drawpage.cxx @@ -28,8 +28,8 @@ // ----------------------------------------------------------------------- -ScDrawPage::ScDrawPage(ScDrawLayer& rNewModel, StarBASIC* pBasic, bool bMasterPage) : - FmFormPage(rNewModel, pBasic, bMasterPage) +ScDrawPage::ScDrawPage(ScDrawLayer& rNewModel, bool bMasterPage) : + FmFormPage(rNewModel, bMasterPage) { SetSize( Size( LONG_MAX, LONG_MAX ) ); } diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index 4f3ba5b67564..bdb82f6e60c9 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -308,10 +308,7 @@ void ScDrawLayer::UseHyphenator() SdrPage* ScDrawLayer::AllocPage(bool bMasterPage) { - // don't create basic until it is needed - StarBASIC* pBasic = NULL; - ScDrawPage* pPage = new ScDrawPage( *this, pBasic, bMasterPage); - return pPage; + return new ScDrawPage(*this, bMasterPage); } sal_Bool ScDrawLayer::HasObjects() const -- cgit v1.2.3