summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-03-30 09:36:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-03-30 12:21:40 +0000
commitda56de9ac4824eb365af20b351719395e725be39 (patch)
treef19ad159f5e12b9e62b2ee50f39016819b7a7c5c /sc
parent8d1a56c206e5c2ed6c331049198bb8ebc6176171 (diff)
remove type decorations on char literals
they are only needed where type deduction fails. left them in defines for now. Change-Id: I7f002dd6bc7acc083c73b6c64076de6dd28d0b09 Reviewed-on: https://gerrit.libreoffice.org/35893 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/addincol.cxx2
-rw-r--r--sc/source/ui/unoobj/addruno.cxx4
-rw-r--r--sc/source/ui/unoobj/docuno.cxx2
-rw-r--r--sc/source/ui/view/viewfunc.cxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx
index 6878753deed6..c25bb8a6061b 100644
--- a/sc/source/core/tool/addincol.cxx
+++ b/sc/source/core/tool/addincol.cxx
@@ -574,7 +574,7 @@ void ScUnoAddInCollection::ReadConfiguration()
void ScUnoAddInCollection::LoadComponent( const ScUnoAddInFuncData& rFuncData )
{
const OUString& aFullName = rFuncData.GetOriginalName();
- sal_Int32 nPos = aFullName.lastIndexOf( (sal_Unicode) '.' );
+ sal_Int32 nPos = aFullName.lastIndexOf( '.' );
if ( nPos > 0 )
{
OUString aServiceName = aFullName.copy( 0, nPos );
diff --git a/sc/source/ui/unoobj/addruno.cxx b/sc/source/ui/unoobj/addruno.cxx
index 46087c12903e..04f760605948 100644
--- a/sc/source/ui/unoobj/addruno.cxx
+++ b/sc/source/ui/unoobj/addruno.cxx
@@ -187,13 +187,13 @@ void SAL_CALL ScAddressConversionObj::setPropertyValue( const OUString& aPropert
OUString aUIString(sRepresentation);
// cell or range: strip a single "." at the start
- if ( aUIString[0]== (sal_Unicode) '.' )
+ if ( aUIString[0]== '.' )
aUIString = aUIString.copy( 1 );
if ( bIsRange )
{
// range: also strip a "." after the last colon
- sal_Int32 nColon = aUIString.lastIndexOf( (sal_Unicode) ':' );
+ sal_Int32 nColon = aUIString.lastIndexOf( ':' );
if ( nColon >= 0 && nColon < aUIString.getLength() - 1 &&
aUIString[nColon+1] == '.' )
aUIString = aUIString.replaceAt( nColon+1, 1, "" );
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 4f43c9d77244..36a275c7d926 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -1781,7 +1781,7 @@ void SAL_CALL ScModelObj::render( sal_Int32 nSelRenderer, const uno::Any& aSelec
while ( aIter != aIEnd )
{
OUString aBookmark = aIter->aBookmark;
- if ( aBookmark.toChar() == (sal_Unicode) '#' )
+ if ( aBookmark.toChar() == '#' )
{
// try to resolve internal link
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 150a923902ab..43d661a12f2a 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -2548,7 +2548,7 @@ void ScViewFunc::ChangeNumFmtDecimals( bool bIncrement )
nPrecision = 0;
// 'E' for exponential is fixed in Numberformatter
- sal_Int32 nIndexE = aOut.indexOf((sal_Unicode)'E');
+ sal_Int32 nIndexE = aOut.indexOf('E');
if ( nIndexE >= 0 )
{
sExponentialStandardFormat = aOut.copy( nIndexE ).replace( '-', '+' );