diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-11 10:59:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-11 15:08:33 +0200 |
commit | 52a0f9e6b881c21275358de3ec9b4c85f77402e4 (patch) | |
tree | 0daf786eca433afdb4593fa96761d791e20cebcd /configmgr/source/access.cxx | |
parent | 86453991a7ca0c7f90ae95769ee23cd5ccecd83f (diff) |
avoid some ref-counting traffic in configmgr::Access:getNameInternal
Change-Id: I3062855ab8f9ec9f1e7cdffe163f1c78865d5b9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134154
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'configmgr/source/access.cxx')
-rw-r--r-- | configmgr/source/access.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx index 30e75eb9e8b7..806ff8944d81 100644 --- a/configmgr/source/access.cxx +++ b/configmgr/source/access.cxx @@ -1416,7 +1416,7 @@ rtl::Reference< ChildAccess > Access::getChild(OUString const & name) { getAllChildren()); for (auto const& child : children) { - OUString name2(child->getNameInternal()); + const OUString & name2(child->getNameInternal()); if (name2.startsWith(locale) && (name2.getLength() == locale.getLength() || name2[locale.getLength()] == '-' || |