summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-20 10:05:20 +0200
committerNoel Grandin <noel@peralex.com>2013-11-20 10:07:32 +0200
commit1730df0127ff230cf6c89f4815f5b59c8603fa2b (patch)
tree4d5b32ea155c173fe3cfd905bb148e0998286d9a /sc/source/core/data
parent52bbd9cc00b5a1e15e4f96b5c5fa5e75855692c1 (diff)
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::append
Convert code like: aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") ); to: aOStringBuf.append( " is missing )" ); which compiles down to the same code. Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
Diffstat (limited to 'sc/source/core/data')
-rw-r--r--sc/source/core/data/attarray.cxx3
-rw-r--r--sc/source/core/data/formulacell.cxx15
2 files changed, 8 insertions, 10 deletions
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index e9bfa5969a41..cee38bb8823d 100644
--- a/sc/source/core/data/attarray.cxx
+++ b/sc/source/core/data/attarray.cxx
@@ -100,8 +100,7 @@ void ScAttrArray::TestData() const
{
OStringBuffer aMsg;
aMsg.append(static_cast<sal_Int32>(nErr));
- aMsg.append(RTL_CONSTASCII_STRINGPARAM(
- " errors in attribute array, column "));
+ aMsg.append(" errors in attribute array, column ");
aMsg.append(static_cast<sal_Int32>(nCol));
OSL_FAIL(aMsg.getStr());
}
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index c067976a7418..ab6dda9799ff 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -2063,11 +2063,10 @@ sal_uInt16 ScFormulaCell::GetMatrixEdge( ScAddress& rOrgPos ) const
else
{
#if OSL_DEBUG_LEVEL > 0
- OStringBuffer aMsg(RTL_CONSTASCII_STRINGPARAM(
- "broken Matrix, no MatFormula at origin, Pos: "));
+ OStringBuffer aMsg("broken Matrix, no MatFormula at origin, Pos: ");
OUString aTmp(aPos.Format(SCA_VALID_COL | SCA_VALID_ROW, pDocument));
aMsg.append(OUStringToOString(aTmp, RTL_TEXTENCODING_ASCII_US));
- aMsg.append(RTL_CONSTASCII_STRINGPARAM(", MatOrg: "));
+ aMsg.append(", MatOrg: ");
aTmp = aOrg.Format(SCA_VALID_COL | SCA_VALID_ROW, pDocument);
aMsg.append(OUStringToOString(aTmp, RTL_TEXTENCODING_ASCII_US));
OSL_FAIL(aMsg.getStr());
@@ -2098,16 +2097,16 @@ sal_uInt16 ScFormulaCell::GetMatrixEdge( ScAddress& rOrgPos ) const
OStringBuffer aMsg( "broken Matrix, Pos: " );
OUString aTmp(aPos.Format(SCA_VALID_COL | SCA_VALID_ROW, pDocument));
aMsg.append(OUStringToOString(aTmp, RTL_TEXTENCODING_UTF8 ));
- aMsg.append(RTL_CONSTASCII_STRINGPARAM(", MatOrg: "));
+ aMsg.append(", MatOrg: ");
aTmp = aOrg.Format(SCA_VALID_COL | SCA_VALID_ROW, pDocument);
aMsg.append(OUStringToOString(aTmp, RTL_TEXTENCODING_UTF8 ));
- aMsg.append(RTL_CONSTASCII_STRINGPARAM(", MatCols: "));
+ aMsg.append(", MatCols: ");
aMsg.append(static_cast<sal_Int32>( nC ));
- aMsg.append(RTL_CONSTASCII_STRINGPARAM(", MatRows: "));
+ aMsg.append(", MatRows: ");
aMsg.append(static_cast<sal_Int32>( nR ));
- aMsg.append(RTL_CONSTASCII_STRINGPARAM(", DiffCols: "));
+ aMsg.append(", DiffCols: ");
aMsg.append(static_cast<sal_Int32>( dC ));
- aMsg.append(RTL_CONSTASCII_STRINGPARAM(", DiffRows: "));
+ aMsg.append(", DiffRows: ");
aMsg.append(static_cast<sal_Int32>( dR ));
OSL_FAIL( aMsg.makeStringAndClear().getStr());
}