Kaydet (Commit) 40045b5c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:salunicodeliteral: editeng

Change-Id: I5db29ba3505d914ec05826128713d7e25091ed11
üst c049946e
......@@ -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 );
}
......
......@@ -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)!
......
......@@ -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;
......
......@@ -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;
......
......@@ -29,8 +29,8 @@
#define SVX_TAB_DEFCOUNT 10
#define SVX_TAB_DEFDIST 1134 // 2cm in twips
#define SVX_TAB_NOTFOUND USHRT_MAX
#define cDfltDecimalChar (sal_Unicode(0x00)) // Get from IntlWrapper
#define cDfltFillChar (sal_Unicode(' '))
#define cDfltDecimalChar u'\0' // Get from IntlWrapper
#define cDfltFillChar u' '
class EDITENG_DLLPUBLIC SvxTabStop
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment