diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-11 14:34:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-11 14:39:04 +0200 |
commit | bb761be472ea9a590837dc6c1ca295387ac4c0b7 (patch) | |
tree | 178b4187effe2a05f3d77660ad83eea97144a287 /svx/source/dialog/hdft.cxx | |
parent | 4d120b6ab181f530d3fedc963b1c6ec777f2608a (diff) |
Change SfxTabPage ctor SfxItemSet param from ref to pointer
...and also corresponding param of CreateTabPage function type and corresponding
Craete functions. There were some call sites that passed undefined "null
pointer references" and SfxTabPage internally uses a pointer member pSet that is
checked for null anyway.
Change-Id: I4eb3636155eac46c9c9d26e6e6e842e85d7e95af
Diffstat (limited to 'svx/source/dialog/hdft.cxx')
-rw-r--r-- | svx/source/dialog/hdft.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/dialog/hdft.cxx b/svx/source/dialog/hdft.cxx index dd67155f5233..6e8c26cc1ff8 100644 --- a/svx/source/dialog/hdft.cxx +++ b/svx/source/dialog/hdft.cxx @@ -114,9 +114,9 @@ const sal_uInt16* SvxHeaderPage::GetRanges() -SfxTabPage* SvxHeaderPage::Create( Window* pParent, const SfxItemSet& rSet ) +SfxTabPage* SvxHeaderPage::Create( Window* pParent, const SfxItemSet* rSet ) { - return new SvxHeaderPage( pParent, rSet ); + return new SvxHeaderPage( pParent, *rSet ); } @@ -128,9 +128,9 @@ const sal_uInt16* SvxFooterPage::GetRanges() -SfxTabPage* SvxFooterPage::Create( Window* pParent, const SfxItemSet& rSet ) +SfxTabPage* SvxFooterPage::Create( Window* pParent, const SfxItemSet* rSet ) { - return new SvxFooterPage( pParent, rSet ); + return new SvxFooterPage( pParent, *rSet ); } @@ -155,7 +155,7 @@ SvxFooterPage::SvxFooterPage( Window* pParent, const SfxItemSet& rAttr ) : SvxHFPage::SvxHFPage( Window* pParent, const SfxItemSet& rSet, sal_uInt16 nSetId ) : - SfxTabPage( pParent, "HFFormatPage", "svx/ui/headfootformatpage.ui", rSet ), + SfxTabPage( pParent, "HFFormatPage", "svx/ui/headfootformatpage.ui", &rSet ), nId ( nSetId ), pBBSet ( NULL ), bDisableQueryBox ( false ), |