[Libreoffice-commits] core.git: comphelper/source
Stephan Bergmann
sbergman at redhat.com
Thu Nov 26 03:39:28 PST 2015
comphelper/source/misc/configuration.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit c4ecd6c49307127823375b8ed6e3033441325015
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Nov 26 12:36:54 2015 +0100
That SB variable was a temporary debugging aid
...inadvertently checked in with 7bcf64c29a0f5d3d2d60fe98afadab6e48dbe8b3 "Add
isReadOnly() support to simplified configuration access"
Change-Id: I9b8b477f682605fcdcf65f8e1255524d010495be
diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx
index 69b4aea..5d14d67 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(
More information about the Libreoffice-commits
mailing list