From 4d87443bf59c3242d58b56cc1583d73213ae1f2f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 29 Sep 2016 12:43:17 +0200 Subject: loplugin:constantparam Change-Id: Idbe8c8e6b3d44cacce296ec8c79b2b244281057c Reviewed-on: https://gerrit.libreoffice.org/29321 Tested-by: Jenkins Reviewed-by: Noel Grandin --- rsc/source/parser/rscibas.cxx | 6 +++--- rsc/source/parser/rsclex.cxx | 4 ++-- rsc/source/parser/rscyacc.y | 7 +++---- 3 files changed, 8 insertions(+), 9 deletions(-) (limited to 'rsc/source/parser') diff --git a/rsc/source/parser/rscibas.cxx b/rsc/source/parser/rscibas.cxx index 6c1ee886a2a5..c397ae4ff823 100644 --- a/rsc/source/parser/rscibas.cxx +++ b/rsc/source/parser/rscibas.cxx @@ -380,7 +380,7 @@ RscTupel * RscTypCont::InitGeometry() // Clientvariablen einfuegen pTupel = new RscTupel( pHS->getID( "TupelDeltaSystem" ), - RSC_NOTYPE, nullptr ); + RSC_NOTYPE ); nId = aNmTb.Put( "X", VARNAME ); pTupel->SetVariable( nId, &aShort ); nId = aNmTb.Put( "Y", VARNAME ); @@ -420,7 +420,7 @@ RscTupel * RscTypCont::InitStringTupel() Atom nId; // Clientvariablen einfuegen - pTupel = new RscTupel( pHS->getID( "CharsTupel" ), RSC_NOTYPE, nullptr ); + pTupel = new RscTupel( pHS->getID( "CharsTupel" ), RSC_NOTYPE ); nId = aNmTb.Put( "FILTER", VARNAME ); pTupel->SetVariable( nId, &aString ); nId = aNmTb.Put( "MASK", VARNAME ); @@ -435,7 +435,7 @@ RscTupel * RscTypCont::InitStringLongTupel() Atom nId; // Clientvariablen einfuegen - pTupel = new RscTupel( pHS->getID( "CharsLongTupel" ), RSC_NOTYPE, nullptr ); + pTupel = new RscTupel( pHS->getID( "CharsLongTupel" ), RSC_NOTYPE ); nId = aNmTb.Put( "ItemText", VARNAME ); pTupel->SetVariable( nId, &aString ); nId = aNmTb.Put( "ItemId", VARNAME ); diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx index 1a665c1664d7..a1a32320f77b 100644 --- a/rsc/source/parser/rsclex.cxx +++ b/rsc/source/parser/rsclex.cxx @@ -386,13 +386,13 @@ void IncludeParser( RscFileInst * pFileInst ) { lKey = pTypCon->aFileTab.NewIncFile( aYYSType.string, aYYSType.string ); - pFName->InsertDependFile( lKey, ULONG_MAX ); + pFName->InsertDependFile( lKey ); } else if( INCLUDE_STRING == nToken ) { lKey = pTypCon->aFileTab.NewIncFile( aYYSType.string, OString() ); - pFName->InsertDependFile( lKey, ULONG_MAX ); + pFName->InsertDependFile( lKey ); } } } diff --git a/rsc/source/parser/rscyacc.y b/rsc/source/parser/rscyacc.y index 43272f2fc8c8..bf020892ed76 100644 --- a/rsc/source/parser/rscyacc.y +++ b/rsc/source/parser/rscyacc.y @@ -382,7 +382,7 @@ resource_definition { if( !pTC->aFileTab.NewDef( pFI->GetFileIndex(), rtl::OString( $3 ), - $4.GetLong(), ULONG_MAX ) ) + $4.GetLong() ) ) bError = true; } else if( $4.IsDefinition() ) @@ -397,7 +397,7 @@ resource_definition pExpr = new RscExpression( aExpType, '+', $4 ); if( !pTC->aFileTab.NewDef( pFI->GetFileIndex(), - rtl::OString( $3 ), pExpr, ULONG_MAX ) ) + rtl::OString( $3 ), pExpr ) ) { bError =true; } @@ -405,8 +405,7 @@ resource_definition else if( $4.IsExpression() ) { if( !pTC->aFileTab.NewDef( pFI->GetFileIndex(), - rtl::OString( $3 ), $4.aExp.pExp, - ULONG_MAX ) ) + rtl::OString( $3 ), $4.aExp.pExp ) ) { bError = true; } -- cgit