summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-03-10 14:41:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-03-11 09:06:06 +0100
commit7002caa97e10d29353d3490b4fbb782d436575b3 (patch)
tree98c254c9f94272e145417034f5cdc85b942edf74 /basic
parenta370e7ff7e8225b8343678401eca5a1721b2b9bb (diff)
new loplugin:trivialdestructor
look for potentially trivial destructors that can then be elided Change-Id: I435c251bd4291b5864c20d68f88676faac7c43fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131318 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/dllmgr-none.cxx2
-rw-r--r--basic/source/runtime/dllmgr.hxx2
-rw-r--r--basic/source/sbx/sbxdec.cxx4
-rw-r--r--basic/source/sbx/sbxdec.hxx2
4 files changed, 4 insertions, 6 deletions
diff --git a/basic/source/runtime/dllmgr-none.cxx b/basic/source/runtime/dllmgr-none.cxx
index 7d49ba1bdcdb..4c7f700a9eef 100644
--- a/basic/source/runtime/dllmgr-none.cxx
+++ b/basic/source/runtime/dllmgr-none.cxx
@@ -106,6 +106,8 @@ void SbiDllMgr::FreeDll(SAL_UNUSED_PARAMETER OUString const &) {}
SbiDllMgr::SbiDllMgr() = default;
+#if defined(_WIN32) && !defined(_ARM64_)
SbiDllMgr::~SbiDllMgr() = default;
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/runtime/dllmgr.hxx b/basic/source/runtime/dllmgr.hxx
index 3f984c95105c..e0a99e7f4d3a 100644
--- a/basic/source/runtime/dllmgr.hxx
+++ b/basic/source/runtime/dllmgr.hxx
@@ -33,7 +33,9 @@ public:
SbiDllMgr();
+#if defined(_WIN32) && !defined(_ARM64_)
~SbiDllMgr();
+#endif
ErrCode Call(
std::u16string_view function, std::u16string_view library,
diff --git a/basic/source/sbx/sbxdec.cxx b/basic/source/sbx/sbxdec.cxx
index acfc31acfbd0..3c8f1eec4d78 100644
--- a/basic/source/sbx/sbxdec.cxx
+++ b/basic/source/sbx/sbxdec.cxx
@@ -70,10 +70,6 @@ void SbxDecimal::fillAutomationDecimal
#endif
}
-SbxDecimal::~SbxDecimal()
-{
-}
-
void releaseDecimalPtr( SbxDecimal*& rpDecimal )
{
if( rpDecimal )
diff --git a/basic/source/sbx/sbxdec.hxx b/basic/source/sbx/sbxdec.hxx
index 3db396ea6cb4..756fdc9f9273 100644
--- a/basic/source/sbx/sbxdec.hxx
+++ b/basic/source/sbx/sbxdec.hxx
@@ -46,8 +46,6 @@ public:
SbxDecimal( const SbxDecimal& rDec );
explicit SbxDecimal( const css::bridge::oleautomation::Decimal& rAutomationDec );
- ~SbxDecimal();
-
void addRef()
{ mnRefCount++; }