Commit ac61b107 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QLatin1Char('/') here

parent 1dd0adeb
......@@ -138,16 +138,16 @@ bool Kleo::recursivelyCopy(const QString &src,const QString &dest)
}
for(const auto &file: srcDir.entryList(QDir::Files)) {
const QString srcName = src + QDir::separator() + file;
const QString destName = dest + QDir::separator() + file;
const QString srcName = src + QLatin1Char('/') + file;
const QString destName = dest + QLatin1Char('/') + file;
if(!QFile::copy(srcName, destName)) {
return false;
}
}
for (const auto &dir: srcDir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot)) {
const QString srcName = src + QDir::separator() + dir;
const QString destName = dest + QDir::separator() + dir;
const QString srcName = src + QLatin1Char('/') + dir;
const QString destName = dest + QLatin1Char('/') + dir;
if (!recursivelyCopy(srcName, destName)) {
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment