Skip to content

Commit ae4ac1d

Browse files
committed
review fixes from sonarcloud
Signed-off-by: Matthieu Gallien <[email protected]>
1 parent 47f520a commit ae4ac1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsync/account.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ void Account::setSslErrorHandler(AbstractSslErrorHandler *handler)
436436

437437
void Account::setUrl(const QUrl &url)
438438
{
439-
QRegularExpression discoverPublicLinks(R"((http.://[^/]*).*/s/([^/]*))");
440-
auto isPublicLink = discoverPublicLinks.match(url.toString());
439+
const QRegularExpression discoverPublicLinks(R"((http.://[^/]*).*/s/([^/]*))");
440+
const auto isPublicLink = discoverPublicLinks.match(url.toString());
441441
if (isPublicLink.hasMatch()) {
442442
_url = QUrl::fromUserInput(isPublicLink.captured(1));
443443
_url.setUserName(isPublicLink.captured(2));

0 commit comments

Comments
 (0)