diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-14 08:16:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-14 08:17:32 +0200 |
commit | d366c9b20ec86f3fe521812a0c22def3bfd1f05e (patch) | |
tree | 4bd09438c8cd8f0dbcd0881fc923d56a0a721fc5 /basic/source | |
parent | d2fa59e4025050c9b668ecff379d668f0db52639 (diff) |
remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 4 | ||||
-rw-r--r-- | basic/source/sbx/sbxcurr.cxx | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 9811383e64d5..667d7ab244ef 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -1736,11 +1736,11 @@ bool checkUnoObjectType( SbUnoObject* pUnoObj, const OUString& rClass ) sal_Int32 nClassNameDot = rClass.lastIndexOf( '.' ); if( nClassNameDot >= 0 ) { - aClassName += rClass.copy( 0, nClassNameDot + 1 ) + OUString( sal_Unicode( 'X' ) ) + rClass.copy( nClassNameDot + 1 ); + aClassName += rClass.copy( 0, nClassNameDot + 1 ) + OUString( 'X' ) + rClass.copy( nClassNameDot + 1 ); } else { - aClassName += OUString( sal_Unicode( 'X' ) ) + rClass; + aClassName += OUString( 'X' ) + rClass; } } else // assume extended type declaration support for basic ( can't get here diff --git a/basic/source/sbx/sbxcurr.cxx b/basic/source/sbx/sbxcurr.cxx index 571eeb757230..aac9e3399d26 100644 --- a/basic/source/sbx/sbxcurr.cxx +++ b/basic/source/sbx/sbxcurr.cxx @@ -92,10 +92,10 @@ static OUString ImpCurrencyToString( const sal_Int64 &rVal ) // 0 0.0000 0 // 0.1 0.1000 0.1 - aBuf[nInsertIndex--] = (sal_Unicode)'0'; + aBuf[nInsertIndex--] = '0'; } if ( isNeg ) - aBuf[nInsertIndex] = (sal_Unicode)'-'; + aBuf[nInsertIndex] = '-'; aAbsStr = aBuf.makeStringAndClear(); return aAbsStr; @@ -107,8 +107,8 @@ static sal_Int64 ImpStringToCurrency( const OUString &rStr ) sal_Int32 nFractDigit = 4; - sal_Unicode cDeciPnt = sal_Unicode('.'); - sal_Unicode c1000Sep = sal_Unicode(','); + sal_Unicode cDeciPnt = '.'; + sal_Unicode c1000Sep = ','; #ifdef MAYBEFUTURE sal_Unicode cLocaleDeciPnt, cLocale1000Sep; @@ -202,7 +202,7 @@ static sal_Int64 ImpStringToCurrency( const OUString &rStr ) SbxBase::SetError( SbxERR_CONVERSION ); while( nFractDigit ) { - sNormalisedNumString.append( sal_Unicode('0') ); + sNormalisedNumString.append( '0' ); nFractDigit--; } |