Fix typos

Change-Id: Ic0dc48058153793f95da643b4a055002089e2d55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210047
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2026-08-27 20:34:33 +02:00
committed by Julien Nabet
parent 1178fa58a1
commit d756e8ec7d
3 changed files with 14 additions and 14 deletions
+5 -5
View File
@@ -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();
}
+7 -7
View File
@@ -131,7 +131,7 @@ class FilterCache : public cppu::BaseMutex
<ul>
<li>if the item exists inside config layer but not inside our cache => REMOVED</li>
<li>if the item exists inside config layer and inside our cache => CHANGED</li>
<li>if the item does not exists inside config layer but inside our cache => ADDED.</li>
<li>if the item does not exist inside config layer but inside our cache => ADDED.</li>
</ul>
*/
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.
+2 -2
View File
@@ -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.