QDBusWriteLocker locker(RegisterObjectAction, d);
// lower-bound search for where this object should enter in the tree
- QDBusConnectionPrivate::ObjectTreeNode *node = &d->rootNode;
+ QDBusConnectionPrivate::ObjectTreeNode::DataList::Iterator node = &d->rootNode;
int i = 1;
while (node) {
if (pathComponents.count() == i) {
start = 1;
// walk the object tree
- const QDBusConnectionPrivate::ObjectTreeNode *node = root;
+ QDBusConnectionPrivate::ObjectTreeNode::DataList::ConstIterator node = root;
while (start < length && node) {
if (node->flags & QDBusConnection::ExportChildObjects)
break;
void QDBusConnectionPrivate::handleSignal(const QString &key, const QDBusMessage& msg)
{
- SignalHookHash::const_iterator it = signalHooks.find(key);
+ SignalHookHash::const_iterator it = signalHooks.constFind(key);
SignalHookHash::const_iterator end = signalHooks.constEnd();
//qDebug("looking for: %s", path.toLocal8Bit().constData());
//qDBusDebug() << signalHooks.keys();
return false; // don't connect
// avoid duplicating:
- QDBusConnectionPrivate::SignalHookHash::ConstIterator it = signalHooks.find(key);
+ QDBusConnectionPrivate::SignalHookHash::ConstIterator it = signalHooks.constFind(key);
QDBusConnectionPrivate::SignalHookHash::ConstIterator end = signalHooks.constEnd();
for ( ; it != end && it.key() == key; ++it) {
const QDBusConnectionPrivate::SignalHook &entry = it.value();
// add it to our list:
QDBusWriteLocker locker(ConnectRelayAction, this);
- SignalHookHash::ConstIterator it = signalHooks.find(key);
+ SignalHookHash::ConstIterator it = signalHooks.constFind(key);
SignalHookHash::ConstIterator end = signalHooks.constEnd();
for ( ; it != end && it.key() == key; ++it) {
const SignalHook &entry = it.value();