Skip to content

Commit

Permalink
QString fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 21, 2021
1 parent 89524fc commit a90451b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/processing/qgsprocessingalgorithm.cpp
Expand Up @@ -329,7 +329,7 @@ QString QgsProcessingAlgorithm::asQgisProcessCommand( const QVariantMap &paramet
if ( nonAlphaNumericRx.match( input ).hasMatch() )
{
QString escaped = input;
escaped.replace( '\'', QStringLiteral( "'\\''" ) );
escaped.replace( '\'', QLatin1String( "'\\''" ) );
return QStringLiteral( "'%1'" ).arg( escaped );
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsaction.cpp
Expand Up @@ -111,7 +111,7 @@ void QgsAction::handleFormSubmitAction( const QString &expandedAction ) const
QHttpPart part;
part.setHeader( QNetworkRequest::ContentDispositionHeader,
QStringLiteral( "form-data; name=\"%1\"" )
.arg( QString( queryItem.first ).replace( '"', QStringLiteral( R"(\")" ) ) ) );
.arg( QString( queryItem.first ).replace( '"', QLatin1String( R"(\")" ) ) ) );
part.setBody( queryItem.second.toUtf8() );
multiPart->append( part );
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/history/qgshistoryproviderregistry.cpp
Expand Up @@ -247,7 +247,7 @@ QList<QgsHistoryEntry> QgsHistoryProviderRegistry::queryEntries( const QDateTime
}

if ( !whereClauses.empty() )
sql += QStringLiteral( " WHERE (" ) + whereClauses.join( QStringLiteral( ") AND (" ) ) + ')';
sql += QStringLiteral( " WHERE (" ) + whereClauses.join( QLatin1String( ") AND (" ) ) + ')';

int nErr;
sqlite3_statement_unique_ptr statement = mLocalDB.prepare( sql, nErr );
Expand Down

0 comments on commit a90451b

Please sign in to comment.