diff options
| author | 2015-10-28 10:56:16 +0100 | |
|---|---|---|
| committer | 2015-10-28 10:56:16 +0100 | |
| commit | d271811b7cf700eb22c16e4af30fc6569ac225bb (patch) | |
| tree | 93e36c0597e216deabe85ec06f00c5437b8cbdb5 /booleancondition.cpp | |
| parent | 9e9dd15316e80cae916c532d13ddc5ddc5e93697 (diff) | |
| download | OneRoll-d271811b7cf700eb22c16e4af30fc6569ac225bb.tar.gz OneRoll-d271811b7cf700eb22c16e4af30fc6569ac225bb.zip | |
Optimization about screen
Diffstat (limited to 'booleancondition.cpp')
| -rw-r--r-- | booleancondition.cpp | 14 |
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 { |