diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-09-03 10:47:07 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-03 12:00:40 +0200 |
commit | a06b83ff927d8973c8b4a2de9a0c7ce5cd4b1f96 (patch) | |
tree | 27a5441db9b59bad60a603b961afcaf78340e358 /vcl | |
parent | c505eb427b9e678d75581c56aff16aaf31264da7 (diff) |
Parent reference should be const in VCL builder entry points
Change-Id: I2331e19f5e23e0dde8edd22befc7287515adf37e
Reviewed-on: https://gerrit.libreoffice.org/78536
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/builder.cxx | 3 | ||||
-rw-r--r-- | vcl/source/window/printdlg.cxx | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 1606c18625fb..3f81651e15eb 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -2330,8 +2330,7 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString & { if (customMakeWidget pFunction = GetCustomMakeWidget(name)) { - VclPtr<vcl::Window> xParent(pParent); - pFunction(xWindow, xParent, rMap); + pFunction(xWindow, pParent, rMap); if (xWindow->GetType() == WindowType::PUSHBUTTON) setupFromActionName(static_cast<Button*>(xWindow.get()), rMap, m_xFrame); else if (xWindow->GetType() == WindowType::MENUBUTTON) diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index a9ddf591a768..0efcbab73225 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -57,12 +57,12 @@ enum ORIENTATION_LANDSCAPE }; -extern "C" SAL_DLLPUBLIC_EXPORT void makePrintPreviewWindow(VclPtr<vcl::Window> & rRet, VclPtr<vcl::Window> & pParent, VclBuilder::stringmap &) +extern "C" SAL_DLLPUBLIC_EXPORT void makePrintPreviewWindow(VclPtr<vcl::Window> & rRet, const VclPtr<vcl::Window> & pParent, VclBuilder::stringmap &) { rRet = VclPtr<PrintDialog::PrintPreviewWindow>::Create(pParent); } -extern "C" SAL_DLLPUBLIC_EXPORT void makeShowNupOrderWindow(VclPtr<vcl::Window> & rRet, VclPtr<vcl::Window> & pParent, VclBuilder::stringmap &) +extern "C" SAL_DLLPUBLIC_EXPORT void makeShowNupOrderWindow(VclPtr<vcl::Window> & rRet, const VclPtr<vcl::Window> & pParent, VclBuilder::stringmap &) { rRet = VclPtr<PrintDialog::ShowNupOrderWindow>::Create(pParent); } |