equal
deleted
inserted
replaced
128 bool PathMapper::getChildren(const QString &path, QSet<QString> &children) const |
128 bool PathMapper::getChildren(const QString &path, QSet<QString> &children) const |
129 { |
129 { |
130 QString basePath = path; |
130 QString basePath = path; |
131 if (basePath.right(1) != QString(QLatin1Char('/'))) |
131 if (basePath.right(1) != QString(QLatin1Char('/'))) |
132 basePath += QLatin1Char('/'); |
132 basePath += QLatin1Char('/'); |
133 foreach (QString foundPath, childPaths(basePath)) { |
133 foreach (const QString foundPath, childPaths(basePath)) { |
134 QString value = foundPath.mid(basePath.size()); |
134 QString value = foundPath.mid(basePath.size()); |
135 int index = value.indexOf(QLatin1Char('/')); |
135 int index = value.indexOf(QLatin1Char('/')); |
136 if (index != -1) |
136 if (index != -1) |
137 value = value.mid(0, index); |
137 value = value.mid(0, index); |
138 children.insert(value); |
138 children.insert(value); |