diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-09 13:19:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-09 13:43:01 +0000 |
commit | 8a8981c603d2f45d0fac656e5b4b31bcabfabc92 (patch) | |
tree | ebe7e84f71880b7655f6fd47913cdce81baa9695 /sc | |
parent | 826d133ccfdf20bb9e317715c726c4a562674b0b (diff) |
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
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/drawpage.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/drawpage.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 5 |
3 files changed, 4 insertions, 7 deletions
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 |