From 4be7492a296f348a0e954cc726e47855181c2258 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Mon, 24 Aug 2026 22:02:33 +0200 Subject: [PATCH] Fix typos Change-Id: I8c9c7f3e622f266c0d789f708d17fb413ec120ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209891 Reviewed-by: Julien Nabet Tested-by: Jenkins --- docmodel/source/uno/UnoGradientTools.cxx | 6 +++--- embeddedobj/source/commonembedding/persistence.cxx | 8 ++++---- embeddedobj/source/msole/advisesink.cxx | 2 +- embeddedobj/source/msole/oleembed.cxx | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docmodel/source/uno/UnoGradientTools.cxx b/docmodel/source/uno/UnoGradientTools.cxx index 172d4cf2efe8..f0b7bfb506be 100644 --- a/docmodel/source/uno/UnoGradientTools.cxx +++ b/docmodel/source/uno/UnoGradientTools.cxx @@ -55,8 +55,8 @@ css::awt::Gradient2 createUnoGradient2(basegfx::BGradient const& rGradient) // NOTE: All code after adapting to multi color gradients works // using the ColorSteps, so in principle Start/EndColor might // be either - // (a) ignored consequently everywhere or - // (b) be set/added consequently everywhere + // (a) ignored consistently everywhere or + // (b) be set/added consistently everywhere // since this is - in principle - redundant data. // Be aware that e.g. cases like DrawingML::EqualGradients // and others would have to be identified and adapted (!) @@ -68,7 +68,7 @@ css::awt::Gradient2 createUnoGradient2(basegfx::BGradient const& rGradient) // ColorSteps if these are not empty, assuming that these // already contain Start/EndColor. // In principle that redundancy and that it is conflict-free - // could even be checked and asserted, but consequently using + // could even be checked and asserted, but consistently using // (b) methodically should be safe. const basegfx::BColorStops& rColorStops = rGradient.GetColorStops(); aGradient2.StartColor = static_cast(::Color(rColorStops.front().getStopColor())); diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx index af72eb466a8f..de9f12991c35 100644 --- a/embeddedobj/source/commonembedding/persistence.cxx +++ b/embeddedobj/source/commonembedding/persistence.cxx @@ -1020,7 +1020,7 @@ void SAL_CALL OCommonEmbeddedObject::setPersistentEntry( } // for now support of this interface is required to allow breaking of links and converting them to normal embedded - // objects, so the persist name must be handled correctly ( althowgh no real persist entry is used ) + // objects, so the persist name must be handled correctly ( although no real persist entry is used ) // OSL_ENSURE( !m_bIsLinkURL, "This method implementation must not be used for links!" ); if ( m_bIsLinkURL ) { @@ -1194,7 +1194,7 @@ void SAL_CALL OCommonEmbeddedObject::storeToEntry( const uno::Reference< embed:: static_cast< ::cppu::OWeakObject* >(this) ); // for now support of this interface is required to allow breaking of links and converting them to normal embedded - // objects, so the persist name must be handled correctly ( althowgh no real persist entry is used ) + // objects, so the persist name must be handled correctly ( although no real persist entry is used ) // OSL_ENSURE( !m_bIsLinkURL, "This method implementation must not be used for links!" ); if ( m_bIsLinkURL ) return; @@ -1324,7 +1324,7 @@ void SAL_CALL OCommonEmbeddedObject::storeAsEntry( const uno::Reference< embed:: static_cast< ::cppu::OWeakObject* >(this) ); // for now support of this interface is required to allow breaking of links and converting them to normal embedded - // objects, so the persist name must be handled correctly ( althowgh no real persist entry is used ) + // objects, so the persist name must be handled correctly ( although no real persist entry is used ) // OSL_ENSURE( !m_bIsLinkURL, "This method implementation must not be used for links!" ); if ( m_bIsLinkURL ) { @@ -1460,7 +1460,7 @@ void SAL_CALL OCommonEmbeddedObject::saveCompleted( sal_Bool bUseNew ) } // for now support of this interface is required to allow breaking of links and converting them to normal embedded - // objects, so the persist name must be handled correctly ( althowgh no real persist entry is used ) + // objects, so the persist name must be handled correctly ( although no real persist entry is used ) // OSL_ENSURE( !m_bIsLinkURL, "This method implementation must not be used for links!" ); if ( m_bIsLinkURL ) { diff --git a/embeddedobj/source/msole/advisesink.cxx b/embeddedobj/source/msole/advisesink.cxx index 5601c8d9eb34..cd3ed4c73ea3 100644 --- a/embeddedobj/source/msole/advisesink.cxx +++ b/embeddedobj/source/msole/advisesink.cxx @@ -69,7 +69,7 @@ STDMETHODIMP_(ULONG) OleWrapperAdviseSink::Release() void OleWrapperAdviseSink::disconnectOleComponent() { - // must not be called from the descructor of OleComponent!!! + // must not be called from the destructor of OleComponent!!! osl::MutexGuard aGuard( m_aMutex ); m_pOleComp = nullptr; } diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx index 063646d39590..5c7da623260e 100644 --- a/embeddedobj/source/msole/oleembed.cxx +++ b/embeddedobj/source/msole/oleembed.cxx @@ -536,7 +536,7 @@ void SAL_CALL OleEmbeddedObject::changeState( sal_Int32 nNewState ) return; } - // so now the object is either switched from Active to Running state or viceversa + // so now the object is either switched from Active to Running state or vice versa // the notification about object state change will be done asynchronously if ( m_nObjectState == embed::EmbedStates::RUNNING && nNewState == embed::EmbedStates::ACTIVE ) {