summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-12-05 22:59:31 +0100
committerLuboš Luňák <l.lunak@collabora.com>2021-12-06 22:19:12 +0100
commit11c2d56b290200fab69956d718f8c5f5c5f2b412 (patch)
treeb77997847cfaa90962af94261503349a11d57260 /include/svl
parent47198583da8e67e0178466205d82835c391c8d73 (diff)
make it clearer that ScHint is modified
It's somewhat confusing that an accessor is provided to give a reference to internal data and then the object is modified indirectly using the reference. It appears to be only for performance reasons, so I thought that inlining the ctor and ctor could help the compiler to optimize this, but apparently it can't move this outside of the loop, so at least make it clearer. Change-Id: I72cf15d1446daa559ac4079b9478e53694d7d198 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126394 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126447
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/hint.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svl/hint.hxx b/include/svl/hint.hxx
index 337930335a0f..ef1343a49fc8 100644
--- a/include/svl/hint.hxx
+++ b/include/svl/hint.hxx
@@ -213,7 +213,7 @@ private:
public:
SfxHint() : mnId(SfxHintId::NONE) {}
explicit SfxHint( SfxHintId nId ) : mnId(nId) {}
- virtual ~SfxHint() COVERITY_NOEXCEPT_FALSE;
+ virtual ~SfxHint() {};
SfxHint(SfxHint const &) = default;
SfxHint(SfxHint &&) = default;