File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -888,7 +888,7 @@ bool QgsProcessingParameters::parseScriptCodeParameterOptions( const QString &co
888
888
889
889
name = m.captured ( 1 );
890
890
QString tokens = m.captured ( 2 );
891
- if ( tokens.toLower (). startsWith ( QStringLiteral ( " optional" ) ) )
891
+ if ( tokens.startsWith ( QStringLiteral ( " optional" ), Qt::CaseInsensitive ) )
892
892
{
893
893
isOptional = true ;
894
894
tokens.remove ( 0 , 8 ); // length "optional" = 8
Original file line number Diff line number Diff line change @@ -168,14 +168,14 @@ QgsStackTrace::QgsStackTrace()
168
168
169
169
bool QgsStackTrace::StackLine::isQgisModule () const
170
170
{
171
- return moduleName.toLower (). contains ( " qgis" );
171
+ return moduleName.contains ( " qgis" , Qt::CaseInsensitive );
172
172
}
173
173
174
174
bool QgsStackTrace::StackLine::isValid () const
175
175
{
176
- return !( fileName.toLower (). contains ( " exe_common" ) ||
177
- fileName.toLower (). contains ( " unknown" ) ||
178
- lineNumber.toLower (). contains ( " unknown" ) );
176
+ return !( fileName.contains ( " exe_common" , Qt::CaseInsensitive ) ||
177
+ fileName.contains ( " unknown" , Qt::CaseInsensitive ) ||
178
+ lineNumber.contains ( " unknown" , Qt::CaseInsensitive ) );
179
179
180
180
}
181
181
// /@endcond
You can’t perform that action at this time.
0 commit comments