summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-25 17:17:47 +0200
committerNoel Grandin <noel@peralex.com>2015-11-26 13:26:25 +0200
commita508f639a033cefe10ad78a09d3b3c46c162aad9 (patch)
tree597720af61860cae97cffd84c638bcaa73e8e381 /comphelper
parentabc6071b7a8af354a56c91e4caecd8afc79f55cc (diff)
mark UNO structs as SAL_WARN_UNUSED, where possible
Change-Id: Ie3de518f60c9f1313c68df54dbdc1fb2804f1f0d
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/configuration.cxx7
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(