loplugin:constantparam in svl

Change-Id: I6c336034a12fda493825b4a8388d3bde6bead910
Reviewed-on: https://gerrit.libreoffice.org/23729
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin 2016-04-01 16:06:38 +02:00 committed by Noel Grandin
parent 17b1852133
commit 1e55aad799
7 changed files with 11 additions and 15 deletions

View File

@ -436,8 +436,7 @@ protected:
SfxMultiVarRecordWriter( sal_uInt8 nRecordType,
SvStream *pStream,
sal_uInt16 nRecordTag,
sal_uInt8 nRecordVer );
sal_uInt16 nRecordTag );
void FlushContent_Impl();
@ -627,7 +626,7 @@ inline SfxMultiFixRecordWriter::~SfxMultiFixRecordWriter()
*/
inline SfxMultiMixRecordWriter::SfxMultiMixRecordWriter( SvStream* pStream,
sal_uInt16 nRecordTag )
: SfxMultiVarRecordWriter( SFX_REC_TYPE_MIXTAGS, pStream, nRecordTag, 0 )
: SfxMultiVarRecordWriter( SFX_REC_TYPE_MIXTAGS, pStream, nRecordTag )
{
}

View File

@ -29,7 +29,7 @@ class SVL_DLLPUBLIC SfxImageItem : public SfxInt16Item
SfxImageItem_Impl* pImp;
public:
static SfxPoolItem* CreateDefault();
SfxImageItem( sal_uInt16 nWhich = 0, sal_uInt16 nImage = 0 );
SfxImageItem( sal_uInt16 nWhich = 0 );
SfxImageItem( const SfxImageItem& );
virtual ~SfxImageItem();

View File

@ -167,8 +167,7 @@ public:
ImpSvNumberformatScan* pSc,
ImpSvNumberInputScan* pISc,
sal_Int32& nCheckPos,
LanguageType& eLan,
bool bStand = false );
LanguageType& eLan );
// Copy ctor
SvNumberformat( SvNumberformat& rFormat );

View File

@ -339,9 +339,8 @@ sal_uInt32 SfxMultiFixRecordWriter::Close()
*/
SfxMultiVarRecordWriter::SfxMultiVarRecordWriter(sal_uInt8 nRecordType,
SvStream* pStream,
sal_uInt16 nRecordTag,
sal_uInt8 nRecordVer)
: SfxMultiFixRecordWriter( nRecordType, pStream, nRecordTag, nRecordVer ),
sal_uInt16 nRecordTag)
: SfxMultiFixRecordWriter( nRecordType, pStream, nRecordTag, 0 ),
_nContentVer( 0 )
{
}

View File

@ -34,8 +34,8 @@ struct SfxImageItem_Impl
};
SfxImageItem::SfxImageItem( sal_uInt16 which, sal_uInt16 nImage )
: SfxInt16Item( which, nImage )
SfxImageItem::SfxImageItem( sal_uInt16 which )
: SfxInt16Item( which, 0 )
{
pImp = new SfxImageItem_Impl;
pImp->nAngle = 0;

View File

@ -591,8 +591,7 @@ SvNumberformat::SvNumberformat(OUString& rString,
ImpSvNumberformatScan* pSc,
ImpSvNumberInputScan* pISc,
sal_Int32& nCheckPos,
LanguageType& eLan,
bool bStan)
LanguageType& eLan)
: rScan(*pSc)
, bAdditionalBuiltin( false )
, bStarFlag( false )
@ -623,7 +622,7 @@ SvNumberformat::SvNumberformat(OUString& rString,
{
maLocale.meLanguage = eLan;
}
bStandard = bStan;
bStandard = false;
bIsUsed = false;
fLimit1 = 0.0;
fLimit2 = 0.0;

View File

@ -4563,7 +4563,7 @@ void ToolBox::statusChanged( const css::frame::FeatureStateEvent& Event )
// Update image mirroring/rotation
if ( Event.FeatureURL.Complete == ".uno:ImageOrientation" )
{
SfxImageItem aItem( 1, 0 );
SfxImageItem aItem( 1 );
aItem.PutValue( Event.State, 0 );
mbImagesMirrored = aItem.IsMirrored();