Skip to content

Commit

Permalink
Merge pull request #6925 from PeterPetrik/use_literal
Browse files Browse the repository at this point in the history
use literal in qgsmeshlayer.cpp
  • Loading branch information
m-kuhn committed May 3, 2018
2 parents b0d5506 + 96173d7 commit dea03b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmeshlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ bool QgsMeshLayer::writeXml( QDomNode &layer_node, QDomDocument &document, const
// first get the layer element so that we can append the type attribute
QDomElement mapLayerNode = layer_node.toElement();

if ( mapLayerNode.isNull() || ( "maplayer" != mapLayerNode.nodeName() ) )
if ( mapLayerNode.isNull() || ( QLatin1String( "maplayer" ) != mapLayerNode.nodeName() ) )
{
QgsDebugMsgLevel( QStringLiteral( "can't find <maplayer>" ), 2 );
return false;
Expand Down

0 comments on commit dea03b2

Please sign in to comment.