Skip to content
Permalink
Browse files
QString fixups
  • Loading branch information
nyalldawson committed Dec 21, 2021
1 parent 89524fc commit a90451b5cc2d17496cc759e4b96de89084adc3ec
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/core/processing/qgsprocessingalgorithm.cpp
  2. +1 −1 src/core/qgsaction.cpp
  3. +1 −1 src/gui/history/qgshistoryproviderregistry.cpp
@@ -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
@@ -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 );
}
@@ -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 );

0 comments on commit a90451b

Please sign in to comment.