diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx index 69b4aea5f1a9..5d14d6772591 100644 --- a/comphelper/source/misc/configuration.cxx +++ b/comphelper/source/misc/configuration.cxx @@ -128,8 +128,10 @@ comphelper::detail::ConfigurationWrapper::~ConfigurationWrapper() {} bool comphelper::detail::ConfigurationWrapper::isReadOnly(OUString const & path) const { - css::beans::Property SB(access_->getPropertyByHierarchicalName(path)); - return (SB.Attributes & css::beans::PropertyAttribute::READONLY) != 0; + return + (access_->getPropertyByHierarchicalName(path).Attributes + & css::beans::PropertyAttribute::READONLY) + != 0; } css::uno::Any comphelper::detail::ConfigurationWrapper::getPropertyValue(