summaryrefslogtreecommitdiffstats
path: root/include/cppuhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-05 09:17:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-05 09:17:47 +0100
commitad9cfbcf02b74b1d1ca9cc5d51e5f3777cb9eab9 (patch)
treedfe2a07e67bc5b1c48d8bd81ff092919f37270e3 /include/cppuhelper
parentThis lock seems useless (diff)
downloadcore-ad9cfbcf02b74b1d1ca9cc5d51e5f3777cb9eab9.tar.gz
core-ad9cfbcf02b74b1d1ca9cc5d51e5f3777cb9eab9.zip
Don't exclude a var from loplugin:salbool merely because of use in >>=
Change-Id: I1b8a3dfa1dc6b351ab0903a74eae19dfa6d0888d
Diffstat (limited to 'include/cppuhelper')
-rw-r--r--include/cppuhelper/proptypehlp.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cppuhelper/proptypehlp.hxx b/include/cppuhelper/proptypehlp.hxx
index 20b301395f7a..bcaefca97470 100644
--- a/include/cppuhelper/proptypehlp.hxx
+++ b/include/cppuhelper/proptypehlp.hxx
@@ -36,7 +36,7 @@ inline void SAL_CALL convertPropertyValue( target &value , const css::uno::Any
}
}
-inline void SAL_CALL convertPropertyValue( sal_Bool & b , const css::uno::Any & a )
+void convertPropertyValue(bool & b, const css::uno::Any & a)
{
if( !(a >>= b) ) {
switch( a.getValueType().getTypeClass() ) {
@@ -71,8 +71,8 @@ inline void SAL_CALL convertPropertyValue( sal_Bool & b , const css::uno::Any
}
}
-void convertPropertyValue(bool & target, css::uno::Any const & source) {
- sal_Bool b;
+void convertPropertyValue(sal_Bool & target, css::uno::Any const & source) {
+ bool b;
convertPropertyValue(b, source);
target = b;
}