summaryrefslogtreecommitdiff
path: root/include/svl/hint.hxx
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 12:22:49 +0100
commita4c9664532329d7143aabdacf22b1cab662f77c4 (patch)
tree8bc3d0c27a334bb5486d039a9768a34fd2424eab /include/svl/hint.hxx
parent0ca559cb8cc3b1af6c59066713bbed8e3ee76514 (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>
Diffstat (limited to 'include/svl/hint.hxx')
-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;