diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-06-28 14:29:34 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-06-28 14:37:25 +0100 |
commit | 5fd43384a443aee09dd4c98ffd79572f44f13000 (patch) | |
tree | 1f0a8540c21b127cd20964da3723a0598e62a3dd /configmgr | |
parent | 546c7baec791aa3027a45cdde6c4c02bc073d002 (diff) |
configmgr: accelerate getPropertyValue.
Change-Id: Ie0460c8db6b1e7fcc9bab1f5e9ae1fbd00987994
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/access.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx index 6aeabb41abab..7402897335eb 100644 --- a/configmgr/source/access.cxx +++ b/configmgr/source/access.cxx @@ -734,12 +734,12 @@ css::uno::Any Access::getPropertyValue(OUString const & PropertyName) { assert(thisIs(IS_GROUP)); osl::MutexGuard g(*lock_); - rtl::Reference< ChildAccess > child(getChild(PropertyName)); - if (!child.is()) { + + css::uno::Any value; + if (!getByNameFast(PropertyName, value)) throw css::beans::UnknownPropertyException( PropertyName, static_cast< cppu::OWeakObject * >(this)); - } - return child->asValue(); + return value; } void Access::addPropertyChangeListener( |