summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configmgr/source/childaccess.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/configmgr/source/childaccess.cxx b/configmgr/source/childaccess.cxx
index a9771ff78d20..7295f8908b1b 100644
--- a/configmgr/source/childaccess.cxx
+++ b/configmgr/source/childaccess.cxx
@@ -269,8 +269,7 @@ css::uno::Any ChildAccess::asValue()
rtl::Reference< ChildAccess > child(getChild("*" + locale));
// As a last resort, return a nil value even though it may be
// illegal for the given property:
- if (child.is())
- return child->asValue();
+ return child.is() ? child->asValue() : css::uno::Any();
}
}
value = css::uno::makeAny(