diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-11 10:12:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-11 12:55:57 +0100 |
commit | 72493fe922ffe91c6587f660f82f99a229e4d6fd (patch) | |
tree | f2b1f6cf758b4f6259d73dac51f4f34621eda927 | |
parent | 934d246e77659ec91321f57e9a244dc39e917150 (diff) |
OWriteToolBoxDocumentHandler doesnt need SolarMutex
it is only ever used from a single thread. This was there
since the beginning.
Change-Id: I580cf86457b2983cd7729bce32cbc0ccca601005
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128270
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | framework/source/fwe/xml/toolboxdocumenthandler.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/framework/source/fwe/xml/toolboxdocumenthandler.cxx b/framework/source/fwe/xml/toolboxdocumenthandler.cxx index 11385edd9b5c..57e28628273e 100644 --- a/framework/source/fwe/xml/toolboxdocumenthandler.cxx +++ b/framework/source/fwe/xml/toolboxdocumenthandler.cxx @@ -180,8 +180,6 @@ void SAL_CALL OReadToolBoxDocumentHandler::startDocument() void SAL_CALL OReadToolBoxDocumentHandler::endDocument() { - SolarMutexGuard g; - if ( m_bToolBarStartFound ) { OUString aErrorMessage = getErrorLineString() + "No matching start or end element 'toolbar' found!"; @@ -192,8 +190,6 @@ void SAL_CALL OReadToolBoxDocumentHandler::endDocument() void SAL_CALL OReadToolBoxDocumentHandler::startElement( const OUString& aName, const Reference< XAttributeList > &xAttribs ) { - SolarMutexGuard g; - ToolBoxHashMap::const_iterator pToolBoxEntry = m_aToolBoxMap.find( aName ); if ( pToolBoxEntry == m_aToolBoxMap.end() ) return; @@ -461,8 +457,6 @@ void SAL_CALL OReadToolBoxDocumentHandler::startElement( void SAL_CALL OReadToolBoxDocumentHandler::endElement(const OUString& aName) { - SolarMutexGuard g; - ToolBoxHashMap::const_iterator pToolBoxEntry = m_aToolBoxMap.find( aName ); if ( pToolBoxEntry == m_aToolBoxMap.end() ) return; @@ -549,15 +543,11 @@ void SAL_CALL OReadToolBoxDocumentHandler::processingInstruction( void SAL_CALL OReadToolBoxDocumentHandler::setDocumentLocator( const Reference< XLocator > &xLocator) { - SolarMutexGuard g; - m_xLocator = xLocator; } OUString OReadToolBoxDocumentHandler::getErrorLineString() { - SolarMutexGuard g; - if ( m_xLocator.is() ) return "Line: " + OUString::number( m_xLocator->getLineNumber() ) + " - "; else @@ -584,8 +574,6 @@ OWriteToolBoxDocumentHandler::~OWriteToolBoxDocumentHandler() void OWriteToolBoxDocumentHandler::WriteToolBoxDocument() { - SolarMutexGuard g; - m_xWriteDocumentHandler->startDocument(); // write DOCTYPE line! |