loplugin:trivialdestructor (-stdlib=libc++)

That these are only flagged when building against libc++ and not against
libstdc++ is a consequence of the plugin's dependence on implementation details
of the relevant classes, but so be it.

Change-Id: I6b96f81939edab2b8e618aa53c9fe23492edfbbd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131562
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2022-03-14 20:14:41 +01:00
parent 9aae749e99
commit 83dd8deed7
4 changed files with 0 additions and 7 deletions

View file

@ -30,7 +30,6 @@ public:
bool hasMoreElements();
const ZipEntry* nextElement();
ZipEnumeration(EntryHash& rNewEntryHash);
~ZipEnumeration();
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -26,7 +26,6 @@ ZipEnumeration::ZipEnumeration(EntryHash& rNewEntryHash)
, aIterator(rEntryHash.begin())
{
}
ZipEnumeration::~ZipEnumeration() {}
bool ZipEnumeration::hasMoreElements() { return (aIterator != rEntryHash.end()); }
const ZipEntry* ZipEnumeration::nextElement()

View file

@ -79,7 +79,6 @@ class IDocumentMarkAccess
iterator& operator=(iterator const& rOther);
iterator(iterator && rOther) noexcept;
iterator& operator=(iterator && rOther) noexcept;
~iterator();
// FIXME unfortunately there's a requirement on input iterator
// and forward iterator to return reference, which isn't

View file

@ -86,10 +86,6 @@ auto IDocumentMarkAccess::iterator::operator=(iterator && rOther) noexcept -> it
return *this;
}
IDocumentMarkAccess::iterator::~iterator()
{
}
// ARGH why does it *need* to return const& ?
::sw::mark::IMark* /*const&*/
IDocumentMarkAccess::iterator::operator*() const