Commit 726615ea authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use static here too

parent 0e2e5da3
......@@ -946,7 +946,7 @@ QString RichTextComposerControler::toWrappedPlainText() const
QString RichTextComposerControler::toWrappedPlainText(QTextDocument *doc) const
{
QString temp;
QRegularExpression rx(QStringLiteral("(http|ftp|ldap)s?\\S+-$"));
static const QRegularExpression rx(QStringLiteral("(http|ftp|ldap)s?\\S+-$"));
QTextBlock block = doc->begin();
while (block.isValid()) {
QTextLayout *layout = block.layout();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment