sfx2: Switch SfxInfoBarContainerChild::m_pBindings to reference
... and rename accordingly. Change-Id: Ie447e60bd9000e7af25f33c853abbdf26f732ccd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208353 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
@@ -62,7 +62,7 @@ public:
|
||||
class SFX2_DLLPUBLIC SfxInfoBarContainerChild final : public SfxChildWindow
|
||||
{
|
||||
private:
|
||||
SfxBindings* m_pBindings;
|
||||
SfxBindings& m_rBindings;
|
||||
|
||||
public:
|
||||
SfxInfoBarContainerChild(vcl::Window* pParent, sal_uInt16 nId, SfxBindings& rBindings,
|
||||
|
||||
@@ -541,7 +541,7 @@ SFX_IMPL_POS_CHILDWINDOW_WITHID(SfxInfoBarContainerChild, SID_INFOBAR, SFX_OBJEC
|
||||
SfxInfoBarContainerChild::SfxInfoBarContainerChild(vcl::Window* _pParent, sal_uInt16 nId,
|
||||
SfxBindings& rBindings, SfxChildWinInfo&)
|
||||
: SfxChildWindow(_pParent, nId)
|
||||
, m_pBindings(&rBindings)
|
||||
, m_rBindings(rBindings)
|
||||
{
|
||||
SetWindow(VclPtr<SfxInfoBarContainerWindow>::Create(this));
|
||||
GetWindow()->SetPosSizePixel(Point(0, 0), Size(_pParent->GetSizePixel().getWidth(), 0));
|
||||
@@ -571,7 +571,7 @@ void SfxInfoBarContainerChild::Update()
|
||||
|
||||
// Refresh the frame to take the infobars container height change into account
|
||||
const sal_uInt16 nId = GetChildWindowId();
|
||||
SfxViewFrame* pVFrame = m_pBindings->GetDispatcher()->GetFrame();
|
||||
SfxViewFrame* pVFrame = m_rBindings.GetDispatcher()->GetFrame();
|
||||
pVFrame->ShowChildWindow(nId);
|
||||
|
||||
// Give the focus to the document view
|
||||
|
||||
Reference in New Issue
Block a user