summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-10 09:26:03 +0200
committerNoel Grandin <noel@peralex.com>2013-12-12 13:15:25 +0200
commit80612512fe3d681f13b794e84e30072ba149b698 (patch)
tree853f5c8f9634189e7f456a994b09cfd5f95fe479 /sc
parent7e72b9de5545ac3baaa44e2d7f11c2872b1677a7 (diff)
remove unnecessary casts
It is no longer necessary to cast to sal_Unicode when calling OUStringBuffer::append Change-Id: Iab3d1e12eef472cfe11f1d0d1969ca404091dd7d
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dputil.cxx4
-rw-r--r--sc/source/core/tool/compiler.cxx6
-rw-r--r--sc/source/core/tool/token.cxx4
3 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/core/data/dputil.cxx b/sc/source/core/data/dputil.cxx
index e21b2a86bbef..14b8639579b4 100644
--- a/sc/source/core/data/dputil.cxx
+++ b/sc/source/core/data/dputil.cxx
@@ -47,7 +47,7 @@ void appendDateStr(OUStringBuffer& rBuffer, double fValue, SvNumberFormatter* pF
OUString getSpecialDateName(double fValue, bool bFirst, SvNumberFormatter* pFormatter)
{
OUStringBuffer aBuffer;
- aBuffer.append(sal_Unicode(bFirst ? '<' : '>'));
+ aBuffer.append( bFirst ? '<' : '>' );
appendDateStr(aBuffer, fValue, pFormatter);
return aBuffer.makeStringAndClear();
}
@@ -206,7 +206,7 @@ OUString lcl_GetSpecialNumGroupName( double fValue, bool bFirst, sal_Unicode cDe
OSL_ENSURE( cDecSeparator != 0, "cDecSeparator not initialized" );
OUStringBuffer aBuffer;
- aBuffer.append((sal_Unicode)( bFirst ? '<' : '>' ));
+ aBuffer.append( bFirst ? '<' : '>' );
if ( bDateValues )
lcl_AppendDateStr( aBuffer, fValue, pFormatter );
else
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 496c151f3fcf..ffce53ba5fce 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -934,7 +934,7 @@ struct ConventionOOO_A1_ODF : public ConventionOOO_A1
const ScComplexRefData& rRef,
bool bSingleRef ) const
{
- rBuffer.append(sal_Unicode('['));
+ rBuffer.append('[');
ScComplexRefData aRef( rRef );
// In case absolute/relative positions weren't separately available:
// transform relative to absolute!
@@ -954,11 +954,11 @@ struct ConventionOOO_A1_ODF : public ConventionOOO_A1
MakeOneRefStrImpl(rBuffer, rErrRef, rTabNames, aRef.Ref1, aAbs1, false, true);
if (!bSingleRef)
{
- rBuffer.append(sal_Unicode(':'));
+ rBuffer.append(':');
MakeOneRefStrImpl(rBuffer, rErrRef, rTabNames, aRef.Ref2, aAbs2, aAbs1.Tab() != aAbs2.Tab(), true);
}
}
- rBuffer.append(sal_Unicode(']'));
+ rBuffer.append(']');
}
virtual OUString makeExternalNameStr( const OUString& rFile, const OUString& rName ) const
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index f74c5eeaffdc..772989be1de3 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -3212,9 +3212,9 @@ void appendDouble( sc::TokenStringContext& rCxt, OUStringBuffer& rBuf, double fV
void appendString( OUStringBuffer& rBuf, const OUString& rStr )
{
- rBuf.append(sal_Unicode('"'));
+ rBuf.append('"');
rBuf.append(rStr.replaceAll("\"", "\"\""));
- rBuf.append(sal_Unicode('"'));
+ rBuf.append('"');
}
void appendTokenByType( sc::TokenStringContext& rCxt, OUStringBuffer& rBuf, const FormulaToken& rToken, const ScAddress& rPos )