| 56 | } |
| 57 | |
| 58 | static QString normalizePathForCompare(const QString& path) |
| 59 | { |
| 60 | if (path.isEmpty()) |
| 61 | return QString(); |
| 62 | |
| 63 | const QFileInfo fi(path); |
| 64 | const QString canonical = fi.canonicalFilePath(); |
| 65 | if (!canonical.isEmpty()) |
| 66 | return QDir::cleanPath(canonical); |
| 67 | |
| 68 | return QDir::cleanPath(fi.absoluteFilePath()); |
| 69 | } |
| 70 | |
| 71 | static bool pathsReferToSameFile(const QString& lhs, const QString& rhs) |
| 72 | { |
no test coverage detected