From d756e8ec7dce3f9110a4fde4ebeac56a4e2ff517 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Wed, 26 Aug 2026 19:18:34 +0200 Subject: [PATCH] Fix typos Change-Id: Ic0dc48058153793f95da643b4a055002089e2d55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210047 Tested-by: Jenkins Reviewed-by: Julien Nabet --- filter/source/config/cache/filtercache.cxx | 10 +++++----- filter/source/config/cache/filtercache.hxx | 14 +++++++------- filter/source/config/cache/typedetection.cxx | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx index 78c8a1840397..cdb76667e49a 100644 --- a/filter/source/config/cache/filtercache.cxx +++ b/filter/source/config/cache/filtercache.cxx @@ -223,13 +223,13 @@ void FilterCache::load(EFillState eRequired) m_sActLocale = DEFAULT_OFFICELOCALE; } - // Support the old configuration support. Read it only one times during office runtime! + // Support the old configuration support. Read it only once during office runtime! impl_readOldFormat(); } // b) If the required fill state was not reached - // but std values was already loaded ... + // but std values were already loaded ... // we must load some further missing items. impl_load(eRequired); // <- SAFE @@ -807,7 +807,7 @@ css::uno::Reference< css::uno::XInterface > FilterCache::impl_openConfig(EConfig } break; - default : throw css::uno::RuntimeException(u"These configuration node is not supported here for open!"_ustr, nullptr); + default : throw css::uno::RuntimeException(u"This configuration node is not supported here for open!"_ustr, nullptr); } { @@ -1704,10 +1704,10 @@ CacheItemList::iterator FilterCache::impl_loadItemOnDemand( EItemType { if (pItemInCache != pList->end()) pList->erase(pItemInCache); - // OK - this item does not exists inside configuration. + // OK - this item does not exist inside configuration. // And we already updated our internal cache. // But the outside code needs this NoSuchElementException - // to know, that this item does notexists. + // to know, that this item does not exist. // Nobody checks the iterator! throw css::container::NoSuchElementException(); } diff --git a/filter/source/config/cache/filtercache.hxx b/filter/source/config/cache/filtercache.hxx index 4bac39aeb913..19c1af066408 100644 --- a/filter/source/config/cache/filtercache.hxx +++ b/filter/source/config/cache/filtercache.hxx @@ -131,7 +131,7 @@ class FilterCache : public cppu::BaseMutex */ enum EItemFlushState @@ -142,7 +142,7 @@ class FilterCache : public cppu::BaseMutex E_ITEM_REMOVED = 1, /// indicates an item, which exists inside config layer and inside our own cache E_ITEM_CHANGED = 2, - /// indicates an item, which does not exists inside config layer but inside our own cache + /// indicates an item, which does not exist inside config layer but inside our own cache E_ITEM_ADDED = 3 }; @@ -212,7 +212,7 @@ class FilterCache : public cppu::BaseMutex /** @short contains status, which cache items/properties - was already loaded from the underlying configuration. + were already loaded from the underlying configuration. @descr This information can be used to detect missing information and load it on demand. @@ -663,14 +663,14 @@ class FilterCache : public cppu::BaseMutex @return [css::uno::Any] the value of the requested key. Can be empty if an internal error occurred or if the requested - key does not exists! + key does not exist! */ css::uno::Any impl_getDirectCFGValue(std::u16string_view sDirectKey); /** @short load the underlying configuration into this cache. - @descr Which items should be read can be regulate by the + @descr Which items should be read can be regulated by the parameter eRequiredState. That provides the possibility to load standard values on startup only and update this cache later on demand with all available information. @@ -766,7 +766,7 @@ class FilterCache : public cppu::BaseMutex /** @short try to load the requested item on demand from the underlying configuration layer. - @descr The outside code has to be sure, that the item does not already exists + @descr The outside code has to be sure, that the item does not already exist inside this cache. Otherwise it will be loaded twice. This method doesn't check such constellations! @@ -783,7 +783,7 @@ class FilterCache : public cppu::BaseMutex But to improve robustness - it should be checked :-) @throw [css::container::NoSuchElementException] - if the item does not exists inside the configuration layer too! + if the item does not exist inside the configuration layer too! @throw [css::uno::Exception] if an unrecoverable error occurs inside this operation. diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx index 24f68ff89011..37342f08c6a1 100644 --- a/filter/source/config/cache/typedetection.cxx +++ b/filter/source/config/cache/typedetection.cxx @@ -963,7 +963,7 @@ OUString TypeDetection::impl_detectTypeFlatAndDeep(comphelper::SequenceAsHashMap = aURL.getName(INetURLObject::LAST_SEGMENT, true, INetURLObject::DecodeMechanism::WithCharset); - // Ask the user whether they wants to try to repair + // Ask the user whether they want to try to repair RequestPackageReparation aRequest(aDocumentTitle); xInteraction->handle(aRequest.GetRequest()); @@ -992,7 +992,7 @@ OUString TypeDetection::impl_detectTypeFlatAndDeep(comphelper::SequenceAsHashMap // a) no types => no detection // b) deep detection not allowed => return first valid type of list (because it's the preferred or the first valid one) // or(!) match by URLPattern => in such case a deep detection will be suppressed! - // c) type has no detect service => safe the first occurred type without a detect service + // c) type has no detect service => save the first occurred type without a detect service // as "last chance"(!). It will be used outside of this method // if no further type could be detected. // It must be the first one, because it can be a preferred type.