diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-11 13:17:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-11 21:55:11 +0200 |
commit | cde416fea13c6020805ac663e254a50b2c885abd (patch) | |
tree | 30867800e45bb5a3034be83cfebe04e06869389f /include | |
parent | c8e144638c10f81a25478dd8d8061d7d870b383c (diff) |
in SetGlobalUNOConstant, only retrieve old value if we need it
removes some unnecessary Find() work
Change-Id: I6af9c4d9a043d4361fcca1a034b2025fe7c10c28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134200
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/basic/basmgr.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/basic/basmgr.hxx b/include/basic/basmgr.hxx index 11c90fea1dfa..94fea1a0bf77 100644 --- a/include/basic/basmgr.hxx +++ b/include/basic/basmgr.hxx @@ -174,10 +174,10 @@ public: /** sets a global constant in the basic library, referring to some UNO object, to a new value. If a constant with this name already existed before, its value is changed, and the old constant is - returned. If it does not yet exist, it is newly created, and inserted into the basic library. + returned in pOldValue. If it does not yet exist, it is newly created, and inserted into the basic library. */ IF_MERGELIBS(BASIC_DLLPUBLIC) - css::uno::Any SetGlobalUNOConstant( const OUString& rName, const css::uno::Any& _rValue ); + void SetGlobalUNOConstant( const OUString& rName, const css::uno::Any& _rValue, css::uno::Any* pOldValue = nullptr ); /** retrieves a global constant in the basic library, referring to some UNO object, returns true if a value is found ( value is in aOut ) false otherwise. */ IF_MERGELIBS(BASIC_DLLPUBLIC) |