diff options
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 |