summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-20 14:23:33 +0200
committerNoel Grandin <noel@peralex.com>2014-01-07 09:43:37 +0200
commit82625bb98e256b83351328d3bf2a14e3dd244eef (patch)
tree9b661850ae5df9ea27fcac063cfe61862046c8d1 /sc
parent347af397cafa97cfa7d5027f83fff784ca04a397 (diff)
remove unnecessary sal_Unicode casts in OUStringBuffer::append calls
Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xecontent.cxx6
-rw-r--r--sc/source/filter/xml/XMLTrackedChangesContext.cxx6
-rw-r--r--sc/source/filter/xml/xmlconti.cxx4
-rw-r--r--sc/source/filter/xml/xmlcvali.cxx4
-rw-r--r--sc/source/ui/vba/vbahelper.cxx18
5 files changed, 19 insertions, 19 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index e977e46095bc..9be1ad212564 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -1563,7 +1563,7 @@ XclExpDV::XclExpDV( const XclExpRoot& rRoot, sal_uLong nScHandle ) :
if( XclTokenArrayHelper::GetStringList( aString, *xScTokArr, '\n' ) )
{
OUStringBuffer sFormulaBuf;
- sFormulaBuf.append( (sal_Unicode) '"' );
+ sFormulaBuf.append( '"' );
/* Formula is a list of string tokens -> build the Excel string.
Data validity is BIFF8 only (important for the XclExpString object).
Excel uses the NUL character as string list separator. */
@@ -1576,14 +1576,14 @@ XclExpDV::XclExpDV( const XclExpRoot& rRoot, sal_uLong nScHandle ) :
if( nToken > 0 )
{
mxString1->Append(OUString(static_cast<sal_Unicode>('\0')));
- sFormulaBuf.append( (sal_Unicode) ',' );
+ sFormulaBuf.append( ',' );
}
mxString1->Append( aToken );
sFormulaBuf.append( aToken );
}
::set_flag( mnFlags, EXC_DV_STRINGLIST );
- sFormulaBuf.append( (sal_Unicode) '"' );
+ sFormulaBuf.append( '"' );
msFormula1 = sFormulaBuf.makeStringAndClear();
}
else
diff --git a/sc/source/filter/xml/XMLTrackedChangesContext.cxx b/sc/source/filter/xml/XMLTrackedChangesContext.cxx
index e2af13224428..85b5f868518b 100644
--- a/sc/source/filter/xml/XMLTrackedChangesContext.cxx
+++ b/sc/source/filter/xml/XMLTrackedChangesContext.cxx
@@ -668,7 +668,7 @@ SvXMLImportContext *ScXMLChangeInfoContext::CreateChildContext( sal_uInt16 nPref
else if ((nPrefix == XML_NAMESPACE_TEXT) && (IsXMLToken(rLocalName, XML_P)) )
{
if(nParagraphCount)
- sCommentBuffer.append(static_cast<sal_Unicode>('\n'));
+ sCommentBuffer.append('\n');
++nParagraphCount;
pContext = new ScXMLContentContext( GetScImport(), nPrefix, rLocalName, xAttrList, sCommentBuffer);
}
@@ -1060,9 +1060,9 @@ SvXMLImportContext *ScXMLChangeTextPContext::CreateChildContext( sal_uInt16 nTem
}
if (nRepeat)
for (sal_Int32 j = 0; j < nRepeat; ++j)
- sText.append(static_cast<sal_Unicode>(' '));
+ sText.append(' ');
else
- sText.append(static_cast<sal_Unicode>(' '));
+ sText.append(' ');
}
else
{
diff --git a/sc/source/filter/xml/xmlconti.cxx b/sc/source/filter/xml/xmlconti.cxx
index 29b91dca5b2f..8e3c496226e1 100644
--- a/sc/source/filter/xml/xmlconti.cxx
+++ b/sc/source/filter/xml/xmlconti.cxx
@@ -70,9 +70,9 @@ SvXMLImportContext *ScXMLContentContext::CreateChildContext( sal_uInt16 nPrefix,
}
if (nRepeat)
for (sal_Int32 j = 0; j < nRepeat; ++j)
- sOUText.append(static_cast<sal_Unicode>(' '));
+ sOUText.append(' ');
else
- sOUText.append(static_cast<sal_Unicode>(' '));
+ sOUText.append(' ');
}
if( !pContext )
diff --git a/sc/source/filter/xml/xmlcvali.cxx b/sc/source/filter/xml/xmlcvali.cxx
index 6ed17807c847..45181098b5b7 100644
--- a/sc/source/filter/xml/xmlcvali.cxx
+++ b/sc/source/filter/xml/xmlcvali.cxx
@@ -532,7 +532,7 @@ SvXMLImportContext *ScXMLHelpMessageContext::CreateChildContext( sal_uInt16 nPre
case XML_TOK_P:
{
if(nParagraphCount)
- sMessage.append(static_cast<sal_Unicode>('\n'));
+ sMessage.append('\n');
++nParagraphCount;
pContext = new ScXMLContentContext( GetScImport(), nPrefix, rLName, xAttrList, sMessage);
}
@@ -606,7 +606,7 @@ SvXMLImportContext *ScXMLErrorMessageContext::CreateChildContext( sal_uInt16 nPr
case XML_TOK_P:
{
if(nParagraphCount)
- sMessage.append(static_cast<sal_Unicode>('\n'));
+ sMessage.append('\n');
++nParagraphCount;
pContext = new ScXMLContentContext( GetScImport(), nPrefix, rLName, xAttrList, sMessage);
}
diff --git a/sc/source/ui/vba/vbahelper.cxx b/sc/source/ui/vba/vbahelper.cxx
index fbe95423d954..e0d262747f82 100644
--- a/sc/source/ui/vba/vbahelper.cxx
+++ b/sc/source/ui/vba/vbahelper.cxx
@@ -586,14 +586,14 @@ OUString VBAToRegexp(const OUString &rIn, bool bForLike )
int seenright = 0;
if ( bForLike )
- sResult.append(static_cast<sal_Unicode>('^'));
+ sResult.append('^');
while (start < end)
{
switch (*start)
{
case '?':
- sResult.append(static_cast<sal_Unicode>('.'));
+ sResult.append('.');
start++;
break;
case '*':
@@ -605,13 +605,13 @@ OUString VBAToRegexp(const OUString &rIn, bool bForLike )
start++;
break;
case '~':
- sResult.append(static_cast<sal_Unicode>('\\'));
+ sResult.append('\\');
sResult.append(*(++start));
start++;
break;
// dump the ~ and escape the next characture
case ']':
- sResult.append(static_cast<sal_Unicode>('\\'));
+ sResult.append('\\');
sResult.append(*start++);
break;
case '[':
@@ -624,7 +624,7 @@ OUString VBAToRegexp(const OUString &rIn, bool bForLike )
case '[':
case '?':
case '*':
- sResult.append(static_cast<sal_Unicode>('\\'));
+ sResult.append('\\');
sResult.append(*start);
break;
case ']':
@@ -632,11 +632,11 @@ OUString VBAToRegexp(const OUString &rIn, bool bForLike )
seenright = 1;
break;
case '!':
- sResult.append(static_cast<sal_Unicode>('^'));
+ sResult.append('^');
break;
default:
if (NeedEsc(*start))
- sResult.append(static_cast<sal_Unicode>('\\'));
+ sResult.append('\\');
sResult.append(*start);
break;
}
@@ -645,13 +645,13 @@ OUString VBAToRegexp(const OUString &rIn, bool bForLike )
break;
default:
if (NeedEsc(*start))
- sResult.append(static_cast<sal_Unicode>('\\'));
+ sResult.append('\\');
sResult.append(*start++);
}
}
if ( bForLike )
- sResult.append(static_cast<sal_Unicode>('$'));
+ sResult.append('$');
return sResult.makeStringAndClear( );
}