diff options
author | melikeyurtoglu <aysemelikeyurtoglu@gmail.com> | 2016-11-06 22:34:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 06:15:05 +0000 |
commit | 62e5010e5df379a26aa85ca9fd58bf872f020c36 (patch) | |
tree | 2cb5eeec5034ccfc510d51a2a61e3f068e9fad54 /sw/source/uibase | |
parent | 8955c3fde60b0621527e4b91576e49778494f926 (diff) |
tdf#91222 VclBuilder constructor cleanup
Change-Id: I2f7e2fd8b9ae45e1aa45cf97750a6107ed9f3036
Signed-off-by: melikeyurtoglu <aysemelikeyurtoglu@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/30673
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/dbui/dbtree.cxx | 9 | ||||
-rw-r--r-- | sw/source/uibase/dbui/mailmergehelper.cxx | 9 |
2 files changed, 2 insertions, 16 deletions
diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx index a91511610f1f..8ff07ac75b37 100644 --- a/sw/source/uibase/dbui/dbtree.cxx +++ b/sw/source/uibase/dbui/dbtree.cxx @@ -153,14 +153,7 @@ SwDBTreeList::SwDBTreeList(vcl::Window *pParent, WinBits nStyle) InitTreeList(); } -VCL_BUILDER_DECL_FACTORY(SwDBTreeList) -{ - WinBits nStyle = WB_TABSTOP; - OString sBorder = VclBuilder::extractCustomProperty(rMap); - if (!sBorder.isEmpty()) - nStyle |= WB_BORDER; - rRet = VclPtr<SwDBTreeList>::Create(pParent, nStyle); -} +VCL_BUILDER_FACTORY_CONSTRUCTOR(SwDBTreeList, WB_TABSTOP) Size SwDBTreeList::GetOptimalSize() const { diff --git a/sw/source/uibase/dbui/mailmergehelper.cxx b/sw/source/uibase/dbui/mailmergehelper.cxx index c6255e87b5cb..9910fe0756f8 100644 --- a/sw/source/uibase/dbui/mailmergehelper.cxx +++ b/sw/source/uibase/dbui/mailmergehelper.cxx @@ -200,14 +200,7 @@ void SwAddressPreview::dispose() vcl::Window::dispose(); } -VCL_BUILDER_DECL_FACTORY(SwAddressPreview) -{ - WinBits nWinStyle = WB_TABSTOP; - OString sBorder = VclBuilder::extractCustomProperty(rMap); - if (!sBorder.isEmpty()) - nWinStyle |= WB_BORDER; - rRet = VclPtr<SwAddressPreview>::Create(pParent, nWinStyle); -} +VCL_BUILDER_FACTORY_CONSTRUCTOR(SwAddressPreview, WB_TABSTOP) void SwAddressPreview::positionScrollBar() { |