diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-01 12:54:31 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-03 09:08:42 +0000 |
commit | f3c1d240bd4f32d014db00a9864c56f77b7cb127 (patch) | |
tree | ff952e1002ed98d1a0d537193f7bd15aac64b1c9 /idl | |
parent | 643b70006fd5f6762561696421808f20d4e1e86f (diff) |
loplugin:constantparams
Change-Id: Ib162ba9297b9d900ea42c7e5216e152d3e58a361
Reviewed-on: https://gerrit.libreoffice.org/25769
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'idl')
-rw-r--r-- | idl/inc/bastype.hxx | 2 | ||||
-rw-r--r-- | idl/source/objects/slot.cxx | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/idl/inc/bastype.hxx b/idl/inc/bastype.hxx index 4e176a5b3ad9..df04891384e8 100644 --- a/idl/inc/bastype.hxx +++ b/idl/inc/bastype.hxx @@ -35,7 +35,7 @@ class SvBOOL bSet:1; public: SvBOOL() { bSet = bVal = false; } - SvBOOL( bool b, bool bSetP ) : bVal( b ), bSet( bSetP ) {} + SvBOOL( bool b ) : bVal( b ), bSet( false) {} SvBOOL & operator = ( bool n ) { bVal = n; bSet = true; return *this; } operator bool() const { return bVal; } diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 22702f1b1d69..c17926a0e44f 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -33,27 +33,27 @@ SvMetaObject *SvMetaSlot::MakeClone() const } SvMetaSlot::SvMetaSlot() - : aRecordPerSet( true, false ) - , aRecordAbsolute( false, false ) + : aRecordPerSet( true ) + , aRecordAbsolute( false ) , pLinkedSlot(nullptr) , pNextSlot(nullptr) , nListPos(0) , pEnumValue(nullptr) - , aReadOnlyDoc ( true, false ) - , aExport( true, false ) + , aReadOnlyDoc ( true ) + , aExport( true ) { } SvMetaSlot::SvMetaSlot( SvMetaType * pType ) : SvMetaAttribute( pType ) - , aRecordPerSet( true, false ) - , aRecordAbsolute( false, false ) + , aRecordPerSet( true ) + , aRecordAbsolute( false ) , pLinkedSlot(nullptr) , pNextSlot(nullptr) , nListPos(0) , pEnumValue(nullptr) - , aReadOnlyDoc ( true, false ) - , aExport( true, false ) + , aReadOnlyDoc ( true ) + , aExport( true ) { } |