Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use QStringLiteral
  • Loading branch information
pblottiere committed May 13, 2020
1 parent 1c28b69 commit c10169e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -145,7 +145,7 @@ QJsonObject QgsLayerTreeModelLegendNode::exportSymbolToJson( const QgsLegendSett
const QString base64 = QString::fromLatin1( byteArray.toBase64().data() );

QJsonObject json;
json[ "icon" ] = base64;
json[ QStringLiteral( "icon" ) ] = base64;
return json;
}

Expand Down Expand Up @@ -705,7 +705,7 @@ QJsonObject QgsSymbolLegendNode::exportSymbolToJson( const QgsLegendSettings &se
const QString base64 = QString::fromLatin1( byteArray.toBase64().data() );

QJsonObject json;
json[ "icon" ] = base64;
json[ QStringLiteral( "icon" ) ] = base64;
return json;
}

Expand Down Expand Up @@ -872,7 +872,7 @@ QJsonObject QgsImageLegendNode::exportSymbolToJson( const QgsLegendSettings &, c
const QString base64 = QString::fromLatin1( byteArray.toBase64().data() );

QJsonObject json;
json[ "icon" ] = base64;
json[ QStringLiteral( "icon" ) ] = base64;
return json;
}

Expand Down Expand Up @@ -996,7 +996,7 @@ QJsonObject QgsRasterSymbolLegendNode::exportSymbolToJson( const QgsLegendSettin
const QString base64 = QString::fromLatin1( byteArray.toBase64().data() );

QJsonObject json;
json[ "icon" ] = base64;
json[ QStringLiteral( "icon" ) ] = base64;
return json;
}

Expand Down Expand Up @@ -1094,7 +1094,7 @@ QJsonObject QgsWmsLegendNode::exportSymbolToJson( const QgsLegendSettings &, con
const QString base64 = QString::fromLatin1( byteArray.toBase64().data() );

QJsonObject json;
json[ "icon" ] = base64;
json[ QStringLiteral( "icon" ) ] = base64;
return json;
}

Expand Down

0 comments on commit c10169e

Please sign in to comment.