diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-06-28 14:18:32 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-06-28 14:37:24 +0100 |
commit | 879aa54e895a56cb65f93ae98e6a9e7b08981a47 (patch) | |
tree | aa45237fb0ad9bb45d563d32e2fd7b789581c1d2 /configmgr/source/childaccess.hxx | |
parent | e820df579d9be4c1f9bb1ad8f02a8072c69b52da (diff) |
configmgr: accelerate simple config key fetches.
Avoid heap allocating UNO object wrappers for the underlying Node
structures only to convert to Any and immediately free them agian
when we can.
Change-Id: Iae4612e9602f872f5d8cca2e516df594c9f1118c
Diffstat (limited to 'configmgr/source/childaccess.hxx')
-rw-r--r-- | configmgr/source/childaccess.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configmgr/source/childaccess.hxx b/configmgr/source/childaccess.hxx index 1f14d672ac51..ee336fac20e1 100644 --- a/configmgr/source/childaccess.hxx +++ b/configmgr/source/childaccess.hxx @@ -113,7 +113,10 @@ public: com::sun::star::uno::Any const & value, Modifications * localModifications); - com::sun::star::uno::Any asValue(); + css::uno::Any asValue(); + static bool asSimpleValue(const rtl::Reference< Node > &rNode, + css::uno::Any &value, + Components &components); void commitChanges(bool valid, Modifications * globalModifications); |