summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2025-02-12 21:12:37 +0000
committerMiklos Vajna <vmiklos@collabora.com>2025-02-13 13:50:37 +0100
commit9be96cfcaec84b730ad2dae923a91aa39efe2993 (patch)
tree6ac224e78df4106a3f51c75740c396d4ce3b145e /configmgr
parent4b1d9da178afd556256e9dd95d2bae1a273b59b5 (diff)
lok: encourage even more sharing of config Node pages.
some properties, e.g. the localized user strings for "uno commands" as used by vcl::CommandInfoProvider::GetCommandProperties are cloned, so the inserted clones are not staticized. Profiles persisted in show many probe:do_wp_page events from salhelper::SimpleReferenceObject::acquire in configmgr::Access::getUnmodifiedChild https: //raw.githubusercontent.com/caolanm/profiles/585ce8645ff6ea1e3de1b3cc6f11a16f325fb0d9/do_wp_page/Demo.eu-2025-02-12T04%3A36%3A21.759836.svg Change-Id: I3eaccbbd7e9af0c312ed1d7da68e64ffb96d3292 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181513 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/node.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/configmgr/source/node.cxx b/configmgr/source/node.cxx
index c9e356c7b913..07307dca43fe 100644
--- a/configmgr/source/node.cxx
+++ b/configmgr/source/node.cxx
@@ -80,7 +80,10 @@ Node::Node(int layer): layer_(layer), finalized_(Data::NO_LAYER)
Node::Node(const Node & other):
SimpleReferenceObject(), layer_(other.layer_), finalized_(other.finalized_)
-{}
+{
+ if (CreateStaticizedNodes)
+ staticize();
+}
Node::~Node() {}