diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-04 08:12:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-04 08:15:07 +0200 |
commit | 0cc53919440f150f4bfedb7a5b88cdb0cf3317dc (patch) | |
tree | 892d01cb1dc412a103a11c420e6a6ff961e88529 /sfx2 | |
parent | 56dcc7b65f0d9d0dd02486d0e9e6be366248c3f5 (diff) |
loplugin:casttovoid in VCL_BUILDER_DECL_FACTORY
Change-Id: I4b0dd08963cf50daa41901975c6f92fe21db2048
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 11 | ||||
-rw-r--r-- | sfx2/source/doc/new.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/sidebar/SidebarToolBox.cxx | 4 |
3 files changed, 8 insertions, 10 deletions
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<vcl::Window> & rRet, VclPtr<vcl::Window> & 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<vcl::Window> & rRet, VclPtr<vcl::Window> & 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<vcl::Window> & rRet, VclPtr<vcl::Window> & pParent, VclBuilder::stringmap &) { - (void)rMap; WinBits nWinBits = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_SIMPLEMODE|WB_DROPDOWN; VclPtrInstance<SearchBox_Impl> 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<vcl::Window> & rRet, VclPtr<vcl::Window> & 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<vcl::Window> & rRet, VclPtr<vcl::Window> & 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<vcl::Window> & rRet, VclPtr<vcl::Window> & pParent, VclBuilder::stringmap &) { - (void) rMap; rRet = VclPtr<SfxPreviewWin_Impl>::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<vcl::Window> & rRet, VclPtr<vcl::Window> & pParent, VclBuilder::stringmap & rMap) { VclPtrInstance<SidebarToolBox> pBox(pParent); pBox->InitToolBox(rMap); rRet = pBox; } -VCL_BUILDER_DECL_FACTORY(NotebookbarToolBox) +extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL makeNotebookbarToolBox(VclPtr<vcl::Window> & rRet, VclPtr<vcl::Window> & pParent, VclBuilder::stringmap & rMap) { VclPtrInstance<NotebookbarToolBox> pBox(pParent); pBox->InitToolBox(rMap); |