summaryrefslogtreecommitdiffstats
path: root/src/libs/kdtools/kdupdaterupdateoperations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/kdtools/kdupdaterupdateoperations.cpp')
-rw-r--r--src/libs/kdtools/kdupdaterupdateoperations.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libs/kdtools/kdupdaterupdateoperations.cpp b/src/libs/kdtools/kdupdaterupdateoperations.cpp
index 9e2f5eb21..6f934abe8 100644
--- a/src/libs/kdtools/kdupdaterupdateoperations.cpp
+++ b/src/libs/kdtools/kdupdaterupdateoperations.cpp
@@ -410,18 +410,15 @@ MkdirOperation::MkdirOperation()
void MkdirOperation::backup()
{
- static const QRegExp re(QLatin1String("\\\\|/"));
- static const QLatin1String sep("/");
-
QString path = arguments().first();
- path.replace(re, sep);
+ path.replace(QLatin1Char('\\'), QLatin1Char('/'));
QDir createdDir = QDir::root();
// find out, which part of the path is the first one we actually need to create
int end = 0;
while (true) {
- QString p = path.section(sep, 0, ++end);
+ QString p = path.section(QLatin1Char('/'), 0, ++end);
createdDir = QDir(p);
if (!createdDir.exists())
break;