Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Thread local
  • Loading branch information
nyalldawson committed Jul 28, 2021
1 parent 55608c2 commit 8a3bf56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsfilewidget.cpp
Expand Up @@ -84,7 +84,8 @@ QStringList QgsFileWidget::splitFilePaths( const QString &path )
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const QStringList pathParts = path.split( QRegExp( "\"\\s+\"" ), QString::SkipEmptyParts );
#else
const QStringList pathParts = path.split( QRegularExpression( "\"\\s+\"" ), Qt::SkipEmptyParts );
const thread_local QRegularExpression partsRegex = QRegularExpression( QStringLiteral( "\"\\s+\"" ) );
const QStringList pathParts = path.split( partsRegex, Qt::SkipEmptyParts );
#endif

const thread_local QRegularExpression cleanRe( QStringLiteral( "(^\\s*\")|(\"\\s*)" ) );
Expand Down

0 comments on commit 8a3bf56

Please sign in to comment.