qtmobility/src/publishsubscribe/psmapperserver_symbian/pathmapper_symbian.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
   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);