summaryrefslogtreecommitdiff
path: root/oox
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 /oox
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 'oox')
-rw-r--r--oox/source/drawingml/diagram/diagram.cxx2
-rw-r--r--oox/source/export/chartexport.cxx2
-rw-r--r--oox/source/ppt/pptfilterhelpers.cxx4
-rw-r--r--oox/source/ppt/presentationfragmenthandler.cxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx
index 3ec61568dd35..4a6a65614cea 100644
--- a/oox/source/drawingml/diagram/diagram.cxx
+++ b/oox/source/drawingml/diagram/diagram.cxx
@@ -102,7 +102,7 @@ void Diagram::setLayout( const DiagramLayoutPtr & pLayout)
OString normalizeDotName( const OUString& rStr )
{
OUStringBuffer aBuf;
- aBuf.append((sal_Unicode)'N');
+ aBuf.append('N');
const sal_Int32 nLen(rStr.getLength());
sal_Int32 nCurrIndex(0);
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 7b44d3045f6c..03ec2abd4339 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -316,7 +316,7 @@ OUString lcl_flattenStringSequence( const Sequence< OUString > & rSequence )
if( !rSequence[nIndex].isEmpty())
{
if( bPrecedeWithSpace )
- aResult.append( static_cast< sal_Unicode >( ' ' ));
+ aResult.append( ' ' );
aResult.append( rSequence[nIndex] );
bPrecedeWithSpace = true;
}
diff --git a/oox/source/ppt/pptfilterhelpers.cxx b/oox/source/ppt/pptfilterhelpers.cxx
index e4f45fbcafa9..c04c58eab73c 100644
--- a/oox/source/ppt/pptfilterhelpers.cxx
+++ b/oox/source/ppt/pptfilterhelpers.cxx
@@ -141,7 +141,7 @@ namespace oox { namespace ppt {
}
else
{
- sRes.append((sal_Unicode)'x');
+ sRes.append('x');
}
bRet = true;
break;
@@ -152,7 +152,7 @@ namespace oox { namespace ppt {
}
else
{
- sRes.append((sal_Unicode)'y');
+ sRes.append('y');
}
bRet = true;
break;
diff --git a/oox/source/ppt/presentationfragmenthandler.cxx b/oox/source/ppt/presentationfragmenthandler.cxx
index 826130cf65a9..26d3752b1209 100644
--- a/oox/source/ppt/presentationfragmenthandler.cxx
+++ b/oox/source/ppt/presentationfragmenthandler.cxx
@@ -383,7 +383,7 @@ void PresentationFragmentHandler::finalizeImport()
{
aPageRange = OUStringBuffer()
.append( static_cast< sal_Int32 >( 1 ) )
- .append( static_cast< sal_Unicode >( '-' ) )
+ .append( '-' )
.append( nPageCount ).makeStringAndClear();
}