summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-11 08:41:13 +0200
committerNoel Grandin <noel@peralex.com>2015-08-11 09:48:17 +0200
commit4f87e9da415632f52a0b212a0005baa991e0585f (patch)
treeeeda6d0f9cd0e34d42737b24710993b8fd699f82 /basic
parentfddb49383d99958ad065f1cd60acc5a70b873bfb (diff)
loplugin: defaultparams
Change-Id: I29ef505ee77965df33677f8051ec39398ef0c74e
Diffstat (limited to 'basic')
-rw-r--r--basic/source/basmgr/basmgr.cxx4
-rw-r--r--basic/source/classes/sb.cxx2
-rw-r--r--basic/source/classes/sbxmod.cxx2
-rw-r--r--basic/source/comp/dim.cxx2
-rw-r--r--basic/source/comp/exprgen.cxx2
-rw-r--r--basic/source/runtime/inputbox.cxx2
-rw-r--r--basic/source/runtime/iosys.cxx2
-rw-r--r--basic/source/runtime/methods1.cxx2
-rw-r--r--basic/source/runtime/runtime.cxx6
-rw-r--r--basic/source/sbx/sbxscan.cxx2
10 files changed, 13 insertions, 13 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 8aa4ae4689c0..28b48c2e2fe9 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -649,7 +649,7 @@ void BasicManager::SetLibraryContainerInfo( const LibraryContainerInfo& rInfo )
StarBASIC* pLib = rBasLibInfo.GetLib();
if( !pLib )
{
- bool bLoaded = ImpLoadLibrary( &rBasLibInfo, NULL, false );
+ bool bLoaded = ImpLoadLibrary( &rBasLibInfo, NULL );
if( bLoaded )
pLib = rBasLibInfo.GetLib();
}
@@ -1369,7 +1369,7 @@ bool BasicManager::LoadLib( sal_uInt16 nLib )
}
else
{
- bDone = ImpLoadLibrary( &rLibInfo, NULL, false );
+ bDone = ImpLoadLibrary( &rLibInfo, NULL );
StarBASIC* pLib = GetLib( nLib );
if ( pLib )
{
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index c4d76ce89988..0fb82bfba764 100644
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -2101,7 +2101,7 @@ void BasicCollection::Initialize()
if ( !xAddInfo.Is() )
{
xAddInfo = new SbxInfo;
- xAddInfo->AddParam( OUString( "Item" ), SbxVARIANT, SbxFlagBits::Read );
+ xAddInfo->AddParam( OUString( "Item" ), SbxVARIANT );
xAddInfo->AddParam( OUString( "Key" ), SbxVARIANT, SbxFlagBits::Read | SbxFlagBits::Optional );
xAddInfo->AddParam( OUString( "Before" ), SbxVARIANT, SbxFlagBits::Read | SbxFlagBits::Optional );
xAddInfo->AddParam( OUString( "After" ), SbxVARIANT, SbxFlagBits::Read | SbxFlagBits::Optional );
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index 3ced4948fe60..79498cd9aef7 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -1827,7 +1827,7 @@ bool SbModule::StoreBinaryData( SvStream& rStrm, sal_uInt16 nVer )
rStrm.WriteUChar( 1 );
if ( nVer )
- bRet = pImage->Save( rStrm, B_EXT_IMG_VERSION );
+ bRet = pImage->Save( rStrm );
else
bRet = pImage->Save( rStrm, B_LEGACYVERSION );
if ( bFixup )
diff --git a/basic/source/comp/dim.cxx b/basic/source/comp/dim.cxx
index eaeea2ce2128..2faa00eaf65e 100644
--- a/basic/source/comp/dim.cxx
+++ b/basic/source/comp/dim.cxx
@@ -1255,7 +1255,7 @@ void SbiParser::DefProc( bool bStatic, bool bPrivate )
{
if ( bVBASupportOn )
{
- pProc->SetStatic( true );
+ pProc->SetStatic();
}
else
{
diff --git a/basic/source/comp/exprgen.cxx b/basic/source/comp/exprgen.cxx
index cfce00682668..93b8c8226e67 100644
--- a/basic/source/comp/exprgen.cxx
+++ b/basic/source/comp/exprgen.cxx
@@ -71,7 +71,7 @@ void SbiExprNode::Gen( SbiCodeGen& rGen, RecursiveMode eRecMode )
rGen.Gen( _CONST, (short) nVal );
break;
case SbxSTRING:
- nStringId = rGen.GetParser()->aGblStrings.Add( aStrVal, true );
+ nStringId = rGen.GetParser()->aGblStrings.Add( aStrVal );
rGen.Gen( _SCONST, nStringId );
break;
default:
diff --git a/basic/source/runtime/inputbox.cxx b/basic/source/runtime/inputbox.cxx
index 787ed43b0570..6f62e49e97f4 100644
--- a/basic/source/runtime/inputbox.cxx
+++ b/basic/source/runtime/inputbox.cxx
@@ -143,7 +143,7 @@ IMPL_LINK( SvRTLInputBox, CancelHdl, Button *, pButton )
(void)pButton;
aText.clear();
- EndDialog( 0 );
+ EndDialog();
return 0;
}
diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx
index ccc7b16f077f..c069c6f92c51 100644
--- a/basic/source/runtime/iosys.cxx
+++ b/basic/source/runtime/iosys.cxx
@@ -128,7 +128,7 @@ IMPL_LINK( SbiInputDialog, Cancel, vcl::Window *, pWindow )
{
(void)pWindow;
- EndDialog( 0 );
+ EndDialog();
return 0;
}
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx
index 5be77d5a897d..9288ad77d55d 100644
--- a/basic/source/runtime/methods1.cxx
+++ b/basic/source/runtime/methods1.cxx
@@ -185,7 +185,7 @@ RTLFUNC(CallByName)
SbiRuntime* pRT = pInst ? pInst->pRun : NULL;
if( pRT != NULL )
{
- pRT->StepSET_Impl( pValVar, rFindVar, false );
+ pRT->StepSET_Impl( pValVar, rFindVar );
}
}
}
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 303910f1d71b..33346245051e 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -2040,7 +2040,7 @@ void SbiRuntime::StepVBASET()
SbxVariableRef refVal = PopVar();
SbxVariableRef refVar = PopVar();
// don't handle default property
- StepSET_Impl( refVal, refVar, false ); // set obj = something
+ StepSET_Impl( refVal, refVar ); // set obj = something
}
@@ -3301,7 +3301,7 @@ void SbiRuntime::StepSETCLASS_impl( sal_uInt32 nOp1, bool bHandleDflt )
void SbiRuntime::StepVBASETCLASS( sal_uInt32 nOp1 )
{
- StepSETCLASS_impl( nOp1, false );
+ StepSETCLASS_impl( nOp1 );
}
void SbiRuntime::StepSETCLASS( sal_uInt32 nOp1 )
@@ -4510,7 +4510,7 @@ void SbiRuntime::implHandleSbxFlags( SbxVariable* pVar, SbxDataType t, sal_uInt3
{
sal_uInt16 nCount = static_cast<sal_uInt16>( nOp2 >> 17 ); // len = all bits above 0x10000
OUStringBuffer aBuf;
- comphelper::string::padToLength(aBuf, nCount, 0);
+ comphelper::string::padToLength(aBuf, nCount);
pVar->PutString(aBuf.makeStringAndClear());
}
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index 45013f58187e..329d4c2e8ae5 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -859,7 +859,7 @@ void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const
// #45355 converting if numeric
if( IsNumericRTL() )
{
- ScanNumIntnl( GetOUString(), d, /*bSingle*/false );
+ ScanNumIntnl( GetOUString(), d );
goto cvt2;
}
else