Skip to content
Permalink
Browse files

Use QStringLiteral

  • Loading branch information
pblottiere committed May 12, 2020
1 parent 1c28b69 commit c10169e2628c75cc3f6237c6cd28b0244697b152
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/core/layertree/qgslayertreemodellegendnode.cpp
@@ -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;
}

@@ -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;
}

@@ -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;
}

@@ -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;
}

@@ -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;
}

0 comments on commit c10169e

Please sign in to comment.
You can’t perform that action at this time.