From 0cc53919440f150f4bfedb7a5b88cdb0cf3317dc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 4 Jul 2017 08:12:27 +0200 Subject: loplugin:casttovoid in VCL_BUILDER_DECL_FACTORY Change-Id: I4b0dd08963cf50daa41901975c6f92fe21db2048 --- sfx2/source/appl/newhelp.cxx | 11 +++++------ sfx2/source/doc/new.cxx | 3 +-- sfx2/source/sidebar/SidebarToolBox.cxx | 4 ++-- 3 files changed, 8 insertions(+), 10 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index d9ef75019f07..c7f10c300465 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -284,7 +284,7 @@ ContentListBox_Impl::ContentListBox_Impl(vcl::Window* pParent, WinBits nStyle) InitRoot(); } -VCL_BUILDER_DECL_FACTORY(ContentListBox) +extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL makeContentListBox(VclPtr & rRet, VclPtr & pParent, VclBuilder::stringmap & rMap) { WinBits nWinStyle = WB_TABSTOP; OUString sBorder = VclBuilder::extractCustomProperty(rMap); @@ -471,7 +471,7 @@ IndexBox_Impl::IndexBox_Impl(vcl::Window* pParent, WinBits nStyle) EnableUserDraw(true); } -VCL_BUILDER_DECL_FACTORY(IndexBox) +extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL makeIndexBox(VclPtr & rRet, VclPtr & pParent, VclBuilder::stringmap & rMap) { WinBits nWinBits = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK; OUString sBorder = VclBuilder::extractCustomProperty(rMap); @@ -847,9 +847,8 @@ void IndexTabPage_Impl::OpenKeyword() // class SearchBox_Impl -------------------------------------------------- -VCL_BUILDER_DECL_FACTORY(SearchBox) +extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL makeSearchBox(VclPtr & rRet, VclPtr & pParent, VclBuilder::stringmap &) { - (void)rMap; WinBits nWinBits = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_SIMPLEMODE|WB_DROPDOWN; VclPtrInstance pComboBox(pParent, nWinBits); pComboBox->EnableAutoSize(true); @@ -879,7 +878,7 @@ void SearchBox_Impl::Select() // class SearchResultsBox_Impl ------------------------------------------- -VCL_BUILDER_DECL_FACTORY(SearchResultsBox) +extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL makeSearchResultsBox(VclPtr & rRet, VclPtr & pParent, VclBuilder::stringmap & rMap) { WinBits nWinBits = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK; OUString sBorder = VclBuilder::extractCustomProperty(rMap); @@ -1140,7 +1139,7 @@ BookmarksBox_Impl::BookmarksBox_Impl(vcl::Window* pParent, WinBits nStyle) { } -VCL_BUILDER_DECL_FACTORY(BookmarksBox) +extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL makeBookmarksBox(VclPtr & rRet, VclPtr & pParent, VclBuilder::stringmap & rMap) { WinBits nWinBits = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_SIMPLEMODE; OUString sBorder = VclBuilder::extractCustomProperty(rMap); diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx index e10986bf6111..d6eab23ca041 100644 --- a/sfx2/source/doc/new.cxx +++ b/sfx2/source/doc/new.cxx @@ -115,9 +115,8 @@ void SfxPreviewWin_Impl::Paint(vcl::RenderContext& rRenderContext, const tools:: ImpPaint(rRenderContext, rRect, xMetaFile.get()); } -VCL_BUILDER_DECL_FACTORY(SfxPreviewWin) +extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL makeSfxPreviewWin(VclPtr & rRet, VclPtr & pParent, VclBuilder::stringmap &) { - (void) rMap; rRet = VclPtr::Create(pParent, 0); } diff --git a/sfx2/source/sidebar/SidebarToolBox.cxx b/sfx2/source/sidebar/SidebarToolBox.cxx index 2dc0c5910c62..1145f6b9e9ba 100644 --- a/sfx2/source/sidebar/SidebarToolBox.cxx +++ b/sfx2/source/sidebar/SidebarToolBox.cxx @@ -323,14 +323,14 @@ public: } }; -VCL_BUILDER_DECL_FACTORY(SidebarToolBox) +extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL makeSidebarToolBox(VclPtr & rRet, VclPtr & pParent, VclBuilder::stringmap & rMap) { VclPtrInstance pBox(pParent); pBox->InitToolBox(rMap); rRet = pBox; } -VCL_BUILDER_DECL_FACTORY(NotebookbarToolBox) +extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL makeNotebookbarToolBox(VclPtr & rRet, VclPtr & pParent, VclBuilder::stringmap & rMap) { VclPtrInstance pBox(pParent); pBox->InitToolBox(rMap); -- cgit