diff options
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/configuration.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx index 8b93ff97f1fb..69b4aea5f1a9 100644 --- a/comphelper/source/misc/configuration.cxx +++ b/comphelper/source/misc/configuration.cxx @@ -128,11 +128,8 @@ comphelper::detail::ConfigurationWrapper::~ConfigurationWrapper() {} bool comphelper::detail::ConfigurationWrapper::isReadOnly(OUString const & path) const { -css::beans::Property SB(access_->getPropertyByHierarchicalName(path)); - return - (access_->getPropertyByHierarchicalName(path).Attributes - & css::beans::PropertyAttribute::READONLY) - != 0; + css::beans::Property SB(access_->getPropertyByHierarchicalName(path)); + return (SB.Attributes & css::beans::PropertyAttribute::READONLY) != 0; } css::uno::Any comphelper::detail::ConfigurationWrapper::getPropertyValue( |