summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-03-06 08:31:20 +0100
committerLuboš Luňák <l.lunak@collabora.com>2022-03-06 10:54:07 +0100
commit35fad780879f0909187c7fa3cb3345814bdceb8c (patch)
treed01ecd4af509b39b2ab504d6ec6924a99a6dda13 /svl
parent143de4b1a9d6c45dce55c6c40061643c965492c6 (diff)
make a bunch of SvtBroadcaster/SvtListeners functions inline
These classes are used extensively during some operations in Calc, and not even LTO can inline these when they end up in different binaries. Change-Id: I5b17a004c6cc039508b76d557d58714c83f237a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131071 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/notify/broadcast.cxx8
-rw-r--r--svl/source/notify/listener.cxx18
2 files changed, 0 insertions, 26 deletions
diff --git a/svl/source/notify/broadcast.cxx b/svl/source/notify/broadcast.cxx
index 54373115c9db..042d1dacaae3 100644
--- a/svl/source/notify/broadcast.cxx
+++ b/svl/source/notify/broadcast.cxx
@@ -177,14 +177,6 @@ void SvtBroadcaster::Remove( SvtListener* p )
ListenersGone();
}
-SvtBroadcaster::SvtBroadcaster()
- : mnEmptySlots(0)
- , mnListenersFirstUnsorted(0)
- , mbAboutToDie(false)
- , mbDisposing(false)
- , mbDestNormalized(true)
-{}
-
SvtBroadcaster::SvtBroadcaster( const SvtBroadcaster &rBC ) :
mnEmptySlots(0), mnListenersFirstUnsorted(0),
mbAboutToDie(false), mbDisposing(false),
diff --git a/svl/source/notify/listener.cxx b/svl/source/notify/listener.cxx
index 172dbdb8b31d..6b1be0ca20b4 100644
--- a/svl/source/notify/listener.cxx
+++ b/svl/source/notify/listener.cxx
@@ -20,18 +20,6 @@
#include <svl/listener.hxx>
#include <svl/broadcast.hxx>
-SvtListener::QueryBase::QueryBase( sal_uInt16 nId ) : mnId(nId) {}
-SvtListener::QueryBase::~QueryBase() {}
-
-sal_uInt16 SvtListener::QueryBase::getId() const
-{
- return mnId;
-}
-
-SvtListener::SvtListener() {}
-
-SvtListener::SvtListener( const SvtListener & ) {}
-
SvtListener::~SvtListener() COVERITY_NOEXCEPT_FALSE
{
// Unregister itself from all broadcasters it's listening to.
@@ -94,14 +82,8 @@ void SvtListener::CopyAllBroadcasters( const SvtListener& r )
}
}
-bool SvtListener::HasBroadcaster() const
-{
- return !maBroadcasters.empty();
-}
-
void SvtListener::Notify( const SfxHint& /*rHint*/ ) {}
void SvtListener::Query( QueryBase& /*rQuery*/ ) const {}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */