summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-23 22:41:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-24 15:27:28 +0200
commit892455e72a57d890918f37bd2b32d6c5000ba6ff (patch)
treea15e0b73f4747a56840f3f457ca786bbbeb759aa /sw/source/ui
parent6390d2c52b75b2868d5ee98863a0af4f103c12e5 (diff)
Simplify uses of comphelper::string::equals with constant argument
Change-Id: I7b12dd04f6811f71b776ee9168703434217b59c8
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/index/cnttab.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 7948ccdf6472..d20dffb87154 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -1778,7 +1778,7 @@ void SwIdxTreeListBox::RequestHelp( const HelpEvent& rHEvt )
{
sal_uInt16 nLevel = static_cast< sal_uInt16 >(GetModel()->GetAbsPos(pEntry));
OUString sEntry = pParent->GetLevelHelp(++nLevel);
- if (comphelper::string::equals(sEntry, '*'))
+ if (sEntry == "*")
sEntry = GetEntryText(pEntry);
if(!sEntry.isEmpty())
{
@@ -4109,10 +4109,10 @@ void SwEntryBrowseBox::ReadEntries(SvStream& rInStr)
pToInsert->sSecKey = sLine.getToken(0, ';', nSttPos );
OUString sStr = sLine.getToken(0, ';', nSttPos );
- pToInsert->bCase = !sStr.isEmpty() && !comphelper::string::equals(sStr, '0');
+ pToInsert->bCase = !sStr.isEmpty() && sStr != "0";
sStr = sLine.getToken(0, ';', nSttPos );
- pToInsert->bWord = !sStr.isEmpty() && !comphelper::string::equals(sStr, '0');
+ pToInsert->bWord = !sStr.isEmpty() && sStr != "0";
aEntryArr.push_back( pToInsert );
pToInsert = 0;