diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-23 22:41:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-24 15:27:28 +0200 |
commit | 892455e72a57d890918f37bd2b32d6c5000ba6ff (patch) | |
tree | a15e0b73f4747a56840f3f457ca786bbbeb759aa /editeng | |
parent | 6390d2c52b75b2868d5ee98863a0af4f103c12e5 (diff) |
Simplify uses of comphelper::string::equals with constant argument
Change-Id: I7b12dd04f6811f71b776ee9168703434217b59c8
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/svxfont.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/editeng/source/items/svxfont.cxx b/editeng/source/items/svxfont.cxx index 7de20d1eed9d..a2501865bcfa 100644 --- a/editeng/source/items/svxfont.cxx +++ b/editeng/source/items/svxfont.cxx @@ -28,9 +28,6 @@ #include <editeng/svxfont.hxx> #include <editeng/escapementitem.hxx> -const sal_Unicode CH_BLANK = ' '; // ' ' Space character - - SvxFont::SvxFont() { nKern = nEsc = 0; @@ -262,7 +259,7 @@ void SvxFont::DoOnCapitals(SvxDoCapitals &rDo) const sal_uInt32 nCharacterType = aCharClass.getCharacterType( aCharString, 0 ); if ( ( nCharacterType & ::com::sun::star::i18n::KCharacterType::UPPER ) ) break; - if ( comphelper::string::equals(aCharString, CH_BLANK) ) + if ( aCharString == " " ) break; if( ++nPos < nTxtLen ) aCharString = rTxt.copy( nPos + nIdx, 1 ); @@ -287,7 +284,7 @@ void SvxFont::DoOnCapitals(SvxDoCapitals &rDo) const nOldPos = nPos; } // Now the blanks are<processed - while( nPos < nTxtLen && comphelper::string::equals(aCharString, CH_BLANK) && ++nPos < nTxtLen ) + while( nPos < nTxtLen && aCharString == " " && ++nPos < nTxtLen ) aCharString = rTxt.copy( nPos + nIdx, 1 ); if( nOldPos != nPos ) |