summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-29 09:29:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-29 12:56:28 +0200
commitca145c7364509cfdabb76472b503a2a5842c2b60 (patch)
treea0226891fbb69d876c808d1cc31860cde501023f /idlc
parent0bebf37bac076a56801ef7d1c113f729b12b9f46 (diff)
remove some unnecessary OString constructor calls
Change-Id: I11358f17770cacb2a33011797f4be82dc02340b7 Reviewed-on: https://gerrit.libreoffice.org/38130 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/astexpression.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx
index f0c12f4a1369..5d5e6133d96c 100644
--- a/idlc/source/astexpression.cxx
+++ b/idlc/source/astexpression.cxx
@@ -1044,10 +1044,10 @@ OString AstExpression::toString()
switch (m_combOperator)
{
case ExprComb::UPlus:
- exprStr += OString("+");
+ exprStr += "+";
break;
case ExprComb::UMinus:
- exprStr += OString("-");
+ exprStr += "-";
break;
default:
break;
@@ -1057,34 +1057,34 @@ OString AstExpression::toString()
switch (m_combOperator)
{
case ExprComb::Add:
- exprStr += OString(" + ");
+ exprStr += " + ";
break;
case ExprComb::Minus:
- exprStr += OString(" - ");
+ exprStr += " - ";
break;
case ExprComb::Mul:
- exprStr += OString(" * ");
+ exprStr += " * ";
break;
case ExprComb::Div:
- exprStr += OString(" / ");
+ exprStr += " / ";
break;
case ExprComb::Mod:
- exprStr += OString(" % ");
+ exprStr += " % ";
break;
case ExprComb::Or:
- exprStr += OString(" | ");
+ exprStr += " | ";
break;
case ExprComb::Xor:
- exprStr += OString(" ^ ");
+ exprStr += " ^ ";
break;
case ExprComb::And:
- exprStr += OString(" & ");
+ exprStr += " & ";
break;
case ExprComb::Left:
- exprStr += OString(" << ");
+ exprStr += " << ";
break;
case ExprComb::Right:
- exprStr += OString(" >> ");
+ exprStr += " >> ";
break;
default:
break;