fix lambda related code

This commit is contained in:
Evgenii Alekseev 2017-12-17 06:24:41 +03:00
parent ce30d90a23
commit 4bba061d66
3 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ QString AWPatternFunctions::expandLambdas(QString _code, AWKeysAggregator *_aggr
const QVariantHash &_metadata,
const QStringList &_usedKeys)
{
qCDebug(LOG_AW) << "Expand lamdas in" << _code;
qCDebug(LOG_AW) << "Expand lambdas in" << _code;
QJSEngine engine;
// apply $this values

View File

@ -397,11 +397,11 @@ void GraphicalItem::setUsedKeys(const QStringList &_usedKeys)
// remove dubs
// HACK converting to set may break order
usedKeys().clear();
m_usedKeys.clear();
for (auto &key : _usedKeys) {
if (usedKeys().contains(key))
if (m_usedKeys.contains(key))
continue;
usedKeys().append(key);
m_usedKeys.append(key);
}
}

View File

@ -176,7 +176,7 @@ void TestAWKeys::test_dbus()
// check if there is active sessions first
QDBusMessage sessions = QDBusMessage::createMethodCall(AWDBUS_SERVICE, AWDBUS_PATH,
AWDBUS_SERVICE, "ActiveServicess");
AWDBUS_SERVICE, "ActiveServices");
QDBusMessage sessionsResponse = bus.call(sessions, QDBus::BlockWithGui);
if (sessionsResponse.arguments().isEmpty())
QSKIP("No active sessions found, skip DBus tests");