diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-08 12:36:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-10 12:02:44 +0200 |
commit | 366d08f2f6d4de922f6099c62bb81b49d89e0a68 (patch) | |
tree | b232884af6e844c2f0994859e4b42efbc1ce654c /lotuswordpro | |
parent | 75a2257a5bd716a9f937abe5e53f305c983afd5d (diff) |
new loplugin:simplifypointertobool
Change-Id: Iff68e8f379614a6ab6a6e0d1bad18e70bc76d76a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91907
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.cxx | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpstory.cxx | 4 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xftable.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx index dcb49f11c13e..c68f1326e02f 100644 --- a/lotuswordpro/source/filter/lwplayout.cxx +++ b/lotuswordpro/source/filter/lwplayout.cxx @@ -525,7 +525,7 @@ rtl::Reference<LwpVirtualLayout> LwpHeadLayout::FindEnSuperTableLayout() { rtl::Reference<LwpVirtualLayout> xLayout(dynamic_cast<LwpVirtualLayout*>(GetChildHead().obj().get())); o3tl::sorted_vector<LwpVirtualLayout*> aSeen; - while (xLayout.get()) + while (xLayout) { aSeen.insert(xLayout.get()); if (xLayout->GetLayoutType() == LWP_ENDNOTE_SUPERTABLE_LAYOUT) diff --git a/lotuswordpro/source/filter/lwpstory.cxx b/lotuswordpro/source/filter/lwpstory.cxx index db757cca43fc..0b15e79a633e 100644 --- a/lotuswordpro/source/filter/lwpstory.cxx +++ b/lotuswordpro/source/filter/lwpstory.cxx @@ -198,7 +198,7 @@ void LwpStory::SortPageLayout() //Get all the pagelayout and store in list std::vector<LwpPageLayout*> aLayoutList; rtl::Reference<LwpVirtualLayout> xLayout(GetLayout(nullptr)); - while (xLayout.get()) + while (xLayout) { LwpPageLayout *pLayout = xLayout->IsPage() ? dynamic_cast<LwpPageLayout*>(xLayout.get()) @@ -347,7 +347,7 @@ void LwpStory::XFConvertFrameInPage(XFContentContainer* pCont) void LwpStory::XFConvertFrameInFrame(XFContentContainer* pCont) { rtl::Reference<LwpVirtualLayout> xLayout(GetLayout(nullptr)); - while (xLayout.get()) + while (xLayout) { rtl::Reference<LwpVirtualLayout> xFrameLayout(dynamic_cast<LwpVirtualLayout*>(xLayout->GetChildHead().obj().get())); o3tl::sorted_vector<LwpVirtualLayout*> aSeen; diff --git a/lotuswordpro/source/filter/xfilter/xftable.cxx b/lotuswordpro/source/filter/xfilter/xftable.cxx index 491bbba06677..47148729cb1a 100644 --- a/lotuswordpro/source/filter/xfilter/xftable.cxx +++ b/lotuswordpro/source/filter/xfilter/xftable.cxx @@ -84,7 +84,7 @@ void XFTable::SetColumnStyle(sal_Int32 col, const OUString& style) void XFTable::AddRow(rtl::Reference<XFRow> const & rRow) { - assert(rRow.get()); + assert(rRow); for (sal_Int32 i = 0; i < rRow->GetCellCount(); ++i) { |