From 4261f5000f5b868dbe35ba8ee78ad3b40029b025 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Mon, 9 Mar 2015 13:58:03 -0400 Subject: [PATCH] Made regExp static const --- openbr/plugins/io/download.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbr/plugins/io/download.cpp b/openbr/plugins/io/download.cpp index a090acb..1d3dd87 100644 --- a/openbr/plugins/io/download.cpp +++ b/openbr/plugins/io/download.cpp @@ -58,7 +58,8 @@ private: url = "file://" + url; dst.file.set("URL", url); - QRegularExpression regExp("file:///[A-Z]:/"); + static const QRegularExpression regExp("file:///[A-Z]:/"); + if (url.contains(regExp)) url = url.mid(8); else if (url.startsWith("file://")) -- libgit2 0.21.4