loplugin:simplifybool
Change-Id: If9d73319988b9d6ac5fcdee2ec815738320a62a0
This commit is contained in:
parent
b4fe924e17
commit
ad2935eee6
@ -90,9 +90,11 @@ namespace
|
|||||||
}
|
}
|
||||||
auto *const pCRFirst (dynamic_cast<::sw::mark::CrossRefBookmark const*>(rpFirst.get()));
|
auto *const pCRFirst (dynamic_cast<::sw::mark::CrossRefBookmark const*>(rpFirst.get()));
|
||||||
auto *const pCRSecond(dynamic_cast<::sw::mark::CrossRefBookmark const*>(rpSecond.get()));
|
auto *const pCRSecond(dynamic_cast<::sw::mark::CrossRefBookmark const*>(rpSecond.get()));
|
||||||
return ((pCRFirst == nullptr) == (pCRSecond == nullptr))
|
if ((pCRFirst == nullptr) == (pCRSecond == nullptr))
|
||||||
? false // equal
|
{
|
||||||
: (pCRFirst != nullptr); // cross-ref sorts *before*
|
return false; // equal
|
||||||
|
}
|
||||||
|
return pCRFirst != nullptr; // cross-ref sorts *before*
|
||||||
}
|
}
|
||||||
|
|
||||||
bool lcl_MarkOrderingByEnd(const IDocumentMarkAccess::pMark_t& rpFirst,
|
bool lcl_MarkOrderingByEnd(const IDocumentMarkAccess::pMark_t& rpFirst,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user