diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-02 16:44:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-03 08:11:02 +0200 |
commit | bd2bf6bd559163389d1e6b6b948fc29cee5f13f5 (patch) | |
tree | e17f74246d0138bcd87100b8853da96423bb3fd1 /basic/source/comp | |
parent | 2b7215e6fa12cd947bdbbe195909642a850cfd69 (diff) |
loplugin:unuseddefaultparams in basic
Change-Id: I286efdac6af47a859693fccc71b445915f76945c
Diffstat (limited to 'basic/source/comp')
-rw-r--r-- | basic/source/comp/parser.cxx | 4 | ||||
-rw-r--r-- | basic/source/comp/symtbl.cxx | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index 35481d63e330..f9934b07db2e 100644 --- a/basic/source/comp/parser.cxx +++ b/basic/source/comp/parser.cxx @@ -243,10 +243,10 @@ void SbiParser::Exit() Error( ERRCODE_BASIC_BAD_EXIT ); } -bool SbiParser::TestSymbol( bool bKwdOk ) +bool SbiParser::TestSymbol() { Peek(); - if( eCurTok == SYMBOL || ( bKwdOk && IsKwd( eCurTok ) ) ) + if( eCurTok == SYMBOL ) { Next(); return true; } diff --git a/basic/source/comp/symtbl.cxx b/basic/source/comp/symtbl.cxx index c75f7c6a06d7..7d9692634b26 100644 --- a/basic/source/comp/symtbl.cxx +++ b/basic/source/comp/symtbl.cxx @@ -52,14 +52,13 @@ const OUString& SbiStringPool::Find( sal_uInt32 n ) const return aData[n - 1]; } -short SbiStringPool::Add( const OUString& rVal, bool bNoCase ) +short SbiStringPool::Add( const OUString& rVal ) { sal_uInt32 n = aData.size(); for( sal_uInt32 i = 0; i < n; ++i ) { OUString& p = aData[i]; - if( ( bNoCase && p == rVal ) - || ( !bNoCase && p.equalsIgnoreAsciiCase( rVal ) ) ) + if( p == rVal ) return i+1; } |