diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 17:57:33 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 18:26:59 +0200 |
commit | 40045b5c119776621897f2a51e00373eba5b33f6 (patch) | |
tree | b2033e25f669e9b2d42a615e4192e47efb14aeae /editeng | |
parent | c049946e16f7fc01a0537911e6d46796528358bb (diff) |
loplugin:salunicodeliteral: editeng
Change-Id: I5db29ba3505d914ec05826128713d7e25091ed11
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/accessibility/AccessibleEditableTextPara.cxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/editattr.hxx | 2 | ||||
-rw-r--r-- | editeng/source/lookuptree/Trie.cxx | 4 | ||||
-rw-r--r-- | editeng/source/uno/unotext.cxx | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx index 993f906d5b05..670253270f11 100644 --- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx +++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx @@ -2070,7 +2070,7 @@ namespace accessibility if( nIndex <= aBoundary.endPos ) { nextWord = aBoundary.endPos; - if( sText.getStr()[nextWord] == sal_Unicode(' ') ) nextWord++; + if( sText.getStr()[nextWord] == u' ' ) nextWord++; bWord = implGetWordBoundary( aBoundary, nextWord ); } diff --git a/editeng/source/editeng/editattr.hxx b/editeng/source/editeng/editattr.hxx index 8bec824a75f8..4307f4618538 100644 --- a/editeng/source/editeng/editattr.hxx +++ b/editeng/source/editeng/editattr.hxx @@ -51,7 +51,7 @@ class SvxCaseMapItem; class SfxGrabBagItem; #define CH_FEATURE_OLD (sal_uInt8) 0xFF -#define CH_FEATURE (sal_Unicode) 0x01 +#define CH_FEATURE u'\x0001' // DEF_METRIC: For my pool, the DefMetric should always appear when // GetMetric (nWhich)! diff --git a/editeng/source/lookuptree/Trie.cxx b/editeng/source/lookuptree/Trie.cxx index 57b0167e97bf..b661d6d81010 100644 --- a/editeng/source/lookuptree/Trie.cxx +++ b/editeng/source/lookuptree/Trie.cxx @@ -71,7 +71,7 @@ void TrieNode::addNewChild(TrieNode* pChild) if (pChild->mCharacter >= 'a' && pChild->mCharacter <= 'z') { - mLatinArray[pChild->mCharacter - sal_Unicode('a')] = pChild; + mLatinArray[pChild->mCharacter - u'a'] = pChild; } else { @@ -84,7 +84,7 @@ TrieNode* TrieNode::findChild(sal_Unicode aInputCharacter) if (aInputCharacter >= 'a' && aInputCharacter <= 'z') { - return mLatinArray[aInputCharacter - sal_Unicode('a')]; + return mLatinArray[aInputCharacter - u'a']; } vector<TrieNode*>::iterator iNode; diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index bd55ed046413..f2e5cbac548f 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -1806,7 +1806,7 @@ void SAL_CALL SvxUnoTextBase::insertControlCharacter( const uno::Reference< text { case text::ControlCharacter::PARAGRAPH_BREAK: { - const OUString aText( (sal_Unicode)13 ); // '\r' does not work on Mac + const OUString aText( u'\x000D' ); // '\r' does not work on Mac insertString( xRange, aText, bAbsorb ); return; @@ -1856,7 +1856,7 @@ void SAL_CALL SvxUnoTextBase::insertControlCharacter( const uno::Reference< text aRange.nEndPos = aRange.nStartPos; pRange->SetSelection( aRange ); - const OUString aText( (sal_Unicode)13 ); // '\r' does not work on Mac + const OUString aText( u'\x000D' ); // '\r' does not work on Mac pRange->setString( aText ); aRange.nStartPos = 0; |