Changeset View
Changeset View
Standalone View
Standalone View
src/lib/term.cpp
Show First 20 Lines • Show All 453 Lines • ▼ Show 20 Line(s) | 453 | { | |||
---|---|---|---|---|---|
454 | if (t.subTerms().isEmpty()) { | 454 | if (t.subTerms().isEmpty()) { | ||
455 | d << QStringLiteral("(%1 %2 %3 (%4))").arg(t.property(), | 455 | d << QStringLiteral("(%1 %2 %3 (%4))").arg(t.property(), | ||
456 | comparatorToString(t.comparator()), | 456 | comparatorToString(t.comparator()), | ||
457 | t.value().toString(), | 457 | t.value().toString(), | ||
458 | t.value().typeName()).toUtf8().constData(); | 458 | t.value().typeName()).toUtf8().constData(); | ||
459 | } | 459 | } | ||
460 | else { | 460 | else { | ||
461 | d << "[" << operationToString(t.operation()).toUtf8().constData(); | 461 | d << "[" << operationToString(t.operation()).toUtf8().constData(); | ||
462 | for (const Term& term : t.subTerms()) { | 462 | const auto subTerms = t.subTerms(); | ||
463 | for (const Term& term : subTerms) { | ||||
463 | d << term; | 464 | d << term; | ||
464 | } | 465 | } | ||
465 | d << "]"; | 466 | d << "]"; | ||
466 | 467 | | |||
467 | } | 468 | } | ||
468 | return d; | 469 | return d; | ||
469 | } | 470 | } |