Kaydet (Commit) 548dbc6b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1260296 Unchecked dynamic_cast

Change-Id: Ib19609c3f4c83ae8baef83bcdadee79e69743df5
üst 6acf1c7a
...@@ -47,7 +47,7 @@ SwModalRedlineAcceptDlg::SwModalRedlineAcceptDlg(vcl::Window *pParent) ...@@ -47,7 +47,7 @@ SwModalRedlineAcceptDlg::SwModalRedlineAcceptDlg(vcl::Window *pParent)
: SfxModalDialog(pParent, : SfxModalDialog(pParent,
"AcceptRejectChangesDialog", "svx/ui/acceptrejectchangesdialog.ui") "AcceptRejectChangesDialog", "svx/ui/acceptrejectchangesdialog.ui")
{ {
pImplDlg = new SwRedlineAcceptDlg(this, get_content_area(), true); pImplDlg = new SwRedlineAcceptDlg(this, this, get_content_area(), true);
pImplDlg->Initialize(GetExtraData()); pImplDlg->Initialize(GetExtraData());
pImplDlg->Activate(); // for data's initialisation pImplDlg->Activate(); // for data's initialisation
......
...@@ -114,7 +114,7 @@ class SW_DLLPUBLIC SwRedlineAcceptDlg ...@@ -114,7 +114,7 @@ class SW_DLLPUBLIC SwRedlineAcceptDlg
SAL_DLLPRIVATE sal_uInt16 GetRedlinePos( const SvTreeListEntry& rEntry) const; SAL_DLLPRIVATE sal_uInt16 GetRedlinePos( const SvTreeListEntry& rEntry) const;
public: public:
SwRedlineAcceptDlg(vcl::Window *pParent, vcl::Window *pContentArea, bool bAutoFmt = false); SwRedlineAcceptDlg(vcl::Window *pParent, VclBuilderContainer *pBuilder, vcl::Window *pContentArea, bool bAutoFmt = false);
virtual ~SwRedlineAcceptDlg(); virtual ~SwRedlineAcceptDlg();
DECL_LINK( FilterChangedHdl, void *pDummy = 0 ); DECL_LINK( FilterChangedHdl, void *pDummy = 0 );
......
...@@ -89,7 +89,7 @@ SwModelessRedlineAcceptDlg::SwModelessRedlineAcceptDlg( ...@@ -89,7 +89,7 @@ SwModelessRedlineAcceptDlg::SwModelessRedlineAcceptDlg(
"AcceptRejectChangesDialog", "svx/ui/acceptrejectchangesdialog.ui") "AcceptRejectChangesDialog", "svx/ui/acceptrejectchangesdialog.ui")
, pChildWin (pChild) , pChildWin (pChild)
{ {
pImplDlg = new SwRedlineAcceptDlg(this, get_content_area()); pImplDlg = new SwRedlineAcceptDlg(this, this, get_content_area());
} }
void SwModelessRedlineAcceptDlg::Activate() void SwModelessRedlineAcceptDlg::Activate()
...@@ -141,9 +141,10 @@ SwModelessRedlineAcceptDlg::~SwModelessRedlineAcceptDlg() ...@@ -141,9 +141,10 @@ SwModelessRedlineAcceptDlg::~SwModelessRedlineAcceptDlg()
delete pImplDlg; delete pImplDlg;
} }
SwRedlineAcceptDlg::SwRedlineAcceptDlg(vcl::Window *pParent, vcl::Window *pContentArea, bool bAutoFmt) : SwRedlineAcceptDlg::SwRedlineAcceptDlg(vcl::Window *pParent, VclBuilderContainer *pBuilder,
vcl::Window *pContentArea, bool bAutoFmt) :
pParentDlg (pParent), pParentDlg (pParent),
aTabPagesCTRL (pContentArea, dynamic_cast<VclBuilderContainer*>(pParent)), aTabPagesCTRL (pContentArea, pBuilder),
aPopup (SW_RES(MN_REDLINE_POPUP)), aPopup (SW_RES(MN_REDLINE_POPUP)),
sInserted (SW_RES(STR_REDLINE_INSERTED)), sInserted (SW_RES(STR_REDLINE_INSERTED)),
sDeleted (SW_RES(STR_REDLINE_DELETED)), sDeleted (SW_RES(STR_REDLINE_DELETED)),
...@@ -1209,7 +1210,7 @@ void SwRedlineAcceptDlg::FillInfo(OUString &rExtraData) const ...@@ -1209,7 +1210,7 @@ void SwRedlineAcceptDlg::FillInfo(OUString &rExtraData) const
SwRedlineAcceptPanel::SwRedlineAcceptPanel(vcl::Window* pParent, const css::uno::Reference<css::frame::XFrame>& rFrame) SwRedlineAcceptPanel::SwRedlineAcceptPanel(vcl::Window* pParent, const css::uno::Reference<css::frame::XFrame>& rFrame)
: PanelLayout(pParent, "ManageChangesPanel", "modules/swriter/ui/managechangessidebar.ui", rFrame) : PanelLayout(pParent, "ManageChangesPanel", "modules/swriter/ui/managechangessidebar.ui", rFrame)
{ {
mpImplDlg = new SwRedlineAcceptDlg(this, get<VclGrid>("content_area")); mpImplDlg = new SwRedlineAcceptDlg(this, this, get<VclGrid>("content_area"));
mpImplDlg->Init(); mpImplDlg->Init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment