diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-03-21 16:55:59 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-03-22 12:03:50 +0000 |
commit | 74f398bb58510087cc4a11bb2253715771a2c6b2 (patch) | |
tree | 617b374a33d8fcd67be2e74225dbc3ef1d9159d0 /sw/source/uibase/inc | |
parent | d41c3c820dad7c78bc57815e0f4a6999d125561d (diff) |
sw: check GetActiveView()
See https://crashreport.libreoffice.org/stats/signature/SwView::GetDocShell()
Change-Id: I90ebbff5082f1f9cae7fa3b940cbb9796d6c6dd3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149223
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/source/uibase/inc')
-rw-r--r-- | sw/source/uibase/inc/drpcps.hxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/inc/swuiccoll.hxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/inc/titlepage.hxx | 2 |
3 files changed, 1 insertions, 6 deletions
diff --git a/sw/source/uibase/inc/drpcps.hxx b/sw/source/uibase/inc/drpcps.hxx index 8d5a5fb6dd6e..afc7c6482253 100644 --- a/sw/source/uibase/inc/drpcps.hxx +++ b/sw/source/uibase/inc/drpcps.hxx @@ -74,7 +74,7 @@ class SwDropCapsPict final : public weld::CustomWidgetController Size CalcTextSize(); inline void InitPrinter(); void InitPrinter_(); - static void GetFontSettings( const SwDropCapsPage& _rPage, vcl::Font& _rFont, sal_uInt16 _nWhich ); + static void GetFontSettings( vcl::Font& _rFont, sal_uInt16 _nWhich ); void GetFirstScriptSegment(sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType); bool GetNextScriptSegment(size_t &nIdx, sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType); @@ -118,8 +118,6 @@ friend class SwDropCapsPict; bool m_bFormat; bool m_bHtmlMode; - SwWrtShell &m_rSh; - std::unique_ptr<weld::CheckButton> m_xDropCapsBox; std::unique_ptr<weld::CheckButton> m_xWholeWordCB; std::unique_ptr<weld::Label> m_xSwitchText; diff --git a/sw/source/uibase/inc/swuiccoll.hxx b/sw/source/uibase/inc/swuiccoll.hxx index aff7f533ab11..74e6920b0275 100644 --- a/sw/source/uibase/inc/swuiccoll.hxx +++ b/sw/source/uibase/inc/swuiccoll.hxx @@ -31,7 +31,6 @@ class SwCondCollPage final : public SfxTabPage { std::vector<OUString> m_aStrArr; - SwWrtShell &m_rSh; const CommandStruct*m_pCmds; SwFormat* m_pFormat; diff --git a/sw/source/uibase/inc/titlepage.hxx b/sw/source/uibase/inc/titlepage.hxx index 35a97c13041f..9e8c58984652 100644 --- a/sw/source/uibase/inc/titlepage.hxx +++ b/sw/source/uibase/inc/titlepage.hxx @@ -24,8 +24,6 @@ class SwPageDesc; class SwTitlePageDlg final : public SfxDialogController { private: - SwWrtShell& mrSh; - std::unique_ptr<const SwFormatPageDesc> mpPageFormatDesc; SwPageDesc* mpTitleDesc; |