diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-12 09:52:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-12 12:18:34 +0200 |
commit | 334fcc3b98f6e047675651f673f8e970de3edc73 (patch) | |
tree | b7c1921809da7293f093eccbcccb6278a306d195 /sw | |
parent | 4b704b530c072c22dc4d66fdad407f3291fdd7e2 (diff) |
drop solarmutex guard from SwTextBoxHelper::isTextBox
this path is very hot on some workloads, and AFAICT the SolarMutex is
already taken on all paths leading here.
But leave a DBG_TESTSOLARMUTEX just to be sure.
Change-Id: Ida278360a8f740b2490574eea5411d952287b10c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151690
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/textboxhelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/textboxhelper.cxx b/sw/source/core/doc/textboxhelper.cxx index e87a28ba4cfd..1bb09d55b753 100644 --- a/sw/source/core/doc/textboxhelper.cxx +++ b/sw/source/core/doc/textboxhelper.cxx @@ -297,7 +297,7 @@ void SwTextBoxHelper::destroy(const SwFrameFormat* pShape, const SdrObject* pObj bool SwTextBoxHelper::isTextBox(const SwFrameFormat* pFormat, sal_uInt16 nType, const SdrObject* pObject) { - SolarMutexGuard aGuard; + DBG_TESTSOLARMUTEX(); assert(nType == RES_FLYFRMFMT || nType == RES_DRAWFRMFMT); if (!pFormat || pFormat->Which() != nType) return false; |