diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-11 10:35:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-11 10:39:03 +0200 |
commit | a92e973b6d0a9ad87fe014442e1678af2ce0c7d0 (patch) | |
tree | b39139c7992a853cc5e4d836fc35cd45c01a3f6d /sw/source/ui/envelp/envprt.cxx | |
parent | 88f84eb1b0eebbb7e0a072f1e7001a9207ebbe9e (diff) |
Change SfxTabPage::Reset param from ref to pointer
...there was a call site that passed undefined "null pointer reference"
(apparently in a case where the passed argument was actually unused)
Change-Id: I663d4264b7a84f44ca69c732f3bc502f614b2b2a
Diffstat (limited to 'sw/source/ui/envelp/envprt.cxx')
-rw-r--r-- | sw/source/ui/envelp/envprt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/envelp/envprt.cxx b/sw/source/ui/envelp/envprt.cxx index 304737608b33..246b2692a39c 100644 --- a/sw/source/ui/envelp/envprt.cxx +++ b/sw/source/ui/envelp/envprt.cxx @@ -170,10 +170,10 @@ bool SwEnvPrtPage::FillItemSet(SfxItemSet* rSet) return true; } -void SwEnvPrtPage::Reset(const SfxItemSet& rSet) +void SwEnvPrtPage::Reset(const SfxItemSet* rSet) { // Read item - const SwEnvItem& rItem = (const SwEnvItem&) rSet.Get(FN_ENVELOP); + const SwEnvItem& rItem = (const SwEnvItem&) rSet->Get(FN_ENVELOP); m_pAlignBox->CheckItem(m_aIds[rItem.eAlign]); if (rItem.bPrintFromAbove) @@ -184,7 +184,7 @@ void SwEnvPrtPage::Reset(const SfxItemSet& rSet) SetFldVal(*m_pRightField, rItem.lShiftRight); SetFldVal(*m_pDownField , rItem.lShiftDown ); - ActivatePage(rSet); + ActivatePage(*rSet); ClickHdl(m_pTopButton); } |