Commit 4261f5000f5b868dbe35ba8ee78ad3b40029b025

Authored by Scott Klum
1 parent bd676c15

Made regExp static const

openbr/plugins/io/download.cpp
... ... @@ -58,7 +58,8 @@ private:
58 58 url = "file://" + url;
59 59 dst.file.set("URL", url);
60 60  
61   - QRegularExpression regExp("file:///[A-Z]:/");
  61 + static const QRegularExpression regExp("file:///[A-Z]:/");
  62 +
62 63 if (url.contains(regExp))
63 64 url = url.mid(8);
64 65 else if (url.startsWith("file://"))
... ...