summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs/sharedocdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/miscdlgs/sharedocdlg.cxx')
-rw-r--r--sc/source/ui/miscdlgs/sharedocdlg.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/miscdlgs/sharedocdlg.cxx b/sc/source/ui/miscdlgs/sharedocdlg.cxx
index 34044fa4f87d..072e83562707 100644
--- a/sc/source/ui/miscdlgs/sharedocdlg.cxx
+++ b/sc/source/ui/miscdlgs/sharedocdlg.cxx
@@ -49,20 +49,17 @@ IMPL_LINK(ScShareDocumentDlg, SizeAllocated, const Size&, rSize, void)
}
-ScShareDocumentDlg::ScShareDocumentDlg(weld::Window* pParent, const ScViewData* pViewData)
+ScShareDocumentDlg::ScShareDocumentDlg(weld::Window* pParent, ScViewData& rViewData)
: GenericDialogController(pParent, u"modules/scalc/ui/sharedocumentdlg.ui"_ustr,
u"ShareDocumentDialog"_ustr)
, m_aStrNoUserData(ScResId(STR_NO_USER_DATA_AVAILABLE))
, m_aStrUnknownUser(ScResId(STR_UNKNOWN_USER_CONFLICT))
, m_aStrExclusiveAccess(ScResId(STR_EXCLUSIVE_ACCESS))
- , mpDocShell(nullptr)
+ , mpDocShell(rViewData.GetDocShell())
, m_xCbShare(m_xBuilder->weld_check_button(u"share"_ustr))
, m_xFtWarning(m_xBuilder->weld_label(u"warning"_ustr))
, m_xLbUsers(m_xBuilder->weld_tree_view(u"users"_ustr))
{
-
- OSL_ENSURE( pViewData, "ScShareDocumentDlg CTOR: mpViewData is null!" );
- mpDocShell = ( pViewData ? pViewData->GetDocShell() : nullptr );
OSL_ENSURE( mpDocShell, "ScShareDocumentDlg CTOR: mpDocShell is null!" );
std::vector<int> aWidths