From ad9cfbcf02b74b1d1ca9cc5d51e5f3777cb9eab9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 5 Jan 2017 09:17:23 +0100 Subject: Don't exclude a var from loplugin:salbool merely because of use in >>= Change-Id: I1b8a3dfa1dc6b351ab0903a74eae19dfa6d0888d --- include/cppuhelper/proptypehlp.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/cppuhelper') 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; } -- cgit