office-gobmx/configmgr/source
Stephan Bergmann 7f927322d9 configmgr: Better handling of finalized vs. non-finalized in the same layer
When there are multiple competing configuration settings for the same
configuration layer (e.g., in xcu files of two different extensions from the
same extension layer), then the setting that is read last always won, even if
any of the settings read earlier is marked as finalized.  (The reason for
originally doing it that way was that it kept the code logic somewhat simple.)

However, esp. for a scenario of multiple extensions in one extension layer
(bundled, shared, or user), it can be unexpected by a user that a non-finalized
setting (that comes from the extension that happens to be read last) can win
over a finalized one.

Therefore, change the logic accordingly.  Now, if any of the competing settings
are finalized, the first finalized one that is read wins.

Change-Id: I22aeade543a5b26d95d49cfcb561f974cd7a5081
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177737
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-12-03 16:26:52 +01:00
..
access.cxx
access.hxx
additions.hxx
broadcaster.cxx
broadcaster.hxx
childaccess.cxx
childaccess.hxx
components.cxx
components.hxx
config_map.hxx
configmgr.component
configurationprovider.cxx
configurationprovider.hxx
configurationregistry.cxx
data.cxx
data.hxx
dconf.cxx
dconf.hxx
defaultprovider.cxx
defaultprovider.hxx
groupnode.cxx
groupnode.hxx
localizedpropertynode.cxx
localizedpropertynode.hxx
localizedvaluenode.cxx
localizedvaluenode.hxx
lock.cxx
lock.hxx
modifications.cxx
modifications.hxx
node.cxx
node.hxx
nodemap.cxx
nodemap.hxx
parsemanager.cxx
parsemanager.hxx
parser.hxx
partial.cxx
partial.hxx
propertynode.cxx
propertynode.hxx
readonlyaccess.cxx
readwriteaccess.cxx
rootaccess.cxx
rootaccess.hxx
rootnode.cxx
rootnode.hxx
setnode.cxx
setnode.hxx
type.cxx
type.hxx
update.cxx
valueparser.cxx
valueparser.hxx
winreg.cxx
winreg.hxx
writemodfile.cxx
writemodfile.hxx
xcdparser.cxx
xcdparser.hxx
xcsparser.cxx
xcsparser.hxx
xcuparser.cxx configmgr: Better handling of finalized vs. non-finalized in the same layer 2024-12-03 16:26:52 +01:00
xcuparser.hxx configmgr: Better handling of finalized vs. non-finalized in the same layer 2024-12-03 16:26:52 +01:00
xmldata.cxx
xmldata.hxx