Commit 4261f5000f5b868dbe35ba8ee78ad3b40029b025
1 parent
bd676c15
Made regExp static const
Showing
1 changed file
with
2 additions
and
1 deletions
openbr/plugins/io/download.cpp
| @@ -58,7 +58,8 @@ private: | @@ -58,7 +58,8 @@ private: | ||
| 58 | url = "file://" + url; | 58 | url = "file://" + url; |
| 59 | dst.file.set("URL", url); | 59 | dst.file.set("URL", url); |
| 60 | 60 | ||
| 61 | - QRegularExpression regExp("file:///[A-Z]:/"); | 61 | + static const QRegularExpression regExp("file:///[A-Z]:/"); |
| 62 | + | ||
| 62 | if (url.contains(regExp)) | 63 | if (url.contains(regExp)) |
| 63 | url = url.mid(8); | 64 | url = url.mid(8); |
| 64 | else if (url.startsWith("file://")) | 65 | else if (url.startsWith("file://")) |