summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:33:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:33:17 +0200
commitd30f4e3647483b4ef9c98d0f9c93c50905005d3c (patch)
tree55f8e027c744e69f33bb7a7dd1a445176670ce1b
parentbee3461c8756d707d042a71a92f81de943229db9 (diff)
loplugin:casttovoid: cppuhelper
Change-Id: I70a8f00b5ec9d100185d2865bcf54ce96c93adc3
-rw-r--r--cppuhelper/source/propshlp.cxx1
-rw-r--r--include/cppuhelper/weak.hxx8
2 files changed, 2 insertions, 7 deletions
diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx
index b8bb9cd737ba..9955750ea05e 100644
--- a/cppuhelper/source/propshlp.cxx
+++ b/cppuhelper/source/propshlp.cxx
@@ -453,7 +453,6 @@ void OPropertySetHelper::setDependentFastPropertyValue( sal_Int32 i_handle, cons
// a good idea. The caller is responsible for not invoking this for constrained properties.
OSL_ENSURE( ( nAttributes & PropertyAttribute::CONSTRAINED ) == 0,
"OPropertySetHelper::setDependentFastPropertyValue: not to be used for constrained properties!" );
- (void)nAttributes;
// actually set the new value
try
diff --git a/include/cppuhelper/weak.hxx b/include/cppuhelper/weak.hxx
index 8c8126e47a54..44e026743d2a 100644
--- a/include/cppuhelper/weak.hxx
+++ b/include/cppuhelper/weak.hxx
@@ -106,17 +106,13 @@ public:
{}
#endif
/** Dummy copy constructor. Set the reference count to zero.
-
- @param rObj dummy param
*/
- OWeakObject( const OWeakObject & rObj )
+ OWeakObject( const OWeakObject & )
: css::uno::XWeak()
, m_refCount( 0 )
, m_pWeakConnectionPoint( NULL )
, m_pReserved(NULL)
- {
- (void) rObj;
- }
+ {}
/** Dummy assignment operator. Does not affect reference count.
@return this OWeakObject