aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/booleancondition.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-10-28 10:56:16 +0100
committerRenaud G <renaud@rolisteam.org>2015-10-28 10:56:16 +0100
commitd271811b7cf700eb22c16e4af30fc6569ac225bb (patch)
tree93e36c0597e216deabe85ec06f00c5437b8cbdb5 /booleancondition.cpp
parent9e9dd15316e80cae916c532d13ddc5ddc5e93697 (diff)
downloadOneRoll-d271811b7cf700eb22c16e4af30fc6569ac225bb.tar.gz
OneRoll-d271811b7cf700eb22c16e4af30fc6569ac225bb.zip
Optimization about screen
Diffstat (limited to 'booleancondition.cpp')
-rw-r--r--booleancondition.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/booleancondition.cpp b/booleancondition.cpp
index c09166e..40a3804 100644
--- a/booleancondition.cpp
+++ b/booleancondition.cpp
@@ -83,26 +83,26 @@ void BooleanCondition::setValue(qint64 v)
}
QString BooleanCondition::toString()
{
- QString str="";
+ QString str(QStringLiteral(""));
switch (m_operator)
{
case Equal:
- str.append("=");
+ str.append(QStringLiteral("="));
break;
case GreaterThan:
- str.append(">");
+ str.append(QStringLiteral(">"));
break;
case LesserThan:
- str.append("<");
+ str.append(QStringLiteral("<"));
break;
case GreaterOrEqual:
- str.append(">=");
+ str.append(QStringLiteral(">="));
break;
case LesserOrEqual:
- str.append("<=");
+ str.append(QStringLiteral("<="));
break;
}
- return QString("[%1%2]").arg(str).arg(m_value);
+ return QStringLiteral("[%1%2]").arg(str).arg(m_value);
}
quint64 BooleanCondition::getValidRangeSize(quint64 faces) const
{