Skip to content

Commit

Permalink
Add c++20 todo for replacing equality operators with default implemen…
Browse files Browse the repository at this point in the history
…tations
  • Loading branch information
nyalldawson authored and PeterPetrik committed Jul 2, 2021
1 parent c8156b0 commit d677040
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/symbology/qgsstyle.cpp
Expand Up @@ -2755,6 +2755,7 @@ bool QgsStyle::importXml( const QString &filename, int sinceVersion )
if ( entityAddedVersion != 0 && sinceVersion != -1 && entityAddedVersion <= sinceVersion )
{
// skip the symbol, should already be present
e = e.nextSiblingElement();
continue;
}

Expand Down Expand Up @@ -2810,6 +2811,7 @@ bool QgsStyle::importXml( const QString &filename, int sinceVersion )
if ( entityAddedVersion != 0 && sinceVersion != -1 && entityAddedVersion <= sinceVersion )
{
// skip the ramp, should already be present
e = e.nextSiblingElement();
continue;
}

Expand Down Expand Up @@ -2859,6 +2861,7 @@ bool QgsStyle::importXml( const QString &filename, int sinceVersion )
if ( entityAddedVersion != 0 && sinceVersion != -1 && entityAddedVersion <= sinceVersion )
{
// skip the format, should already be present
e = e.nextSiblingElement();
continue;
}

Expand Down Expand Up @@ -2901,9 +2904,10 @@ bool QgsStyle::importXml( const QString &filename, int sinceVersion )
while ( !e.isNull() )
{
const int entityAddedVersion = e.attribute( QStringLiteral( "addedVersion" ) ).toInt();
if ( entityAddedVersion != 0 && sinceVersion != -1 && entityAddedVersion <= sinceVersion )
if ( !( entityAddedVersion != 0 && sinceVersion != -1 && entityAddedVersion <= sinceVersion ) )
{
// skip the settings, should already be present
e = e.nextSiblingElement();
continue;
}

Expand Down Expand Up @@ -2950,6 +2954,7 @@ bool QgsStyle::importXml( const QString &filename, int sinceVersion )
if ( entityAddedVersion != 0 && sinceVersion != -1 && entityAddedVersion <= sinceVersion )
{
// skip the shape, should already be present
e = e.nextSiblingElement();
continue;
}

Expand Down Expand Up @@ -2995,6 +3000,7 @@ bool QgsStyle::importXml( const QString &filename, int sinceVersion )
if ( entityAddedVersion != 0 && sinceVersion != -1 && entityAddedVersion <= sinceVersion )
{
// skip the symbol, should already be present
e = e.nextSiblingElement();
continue;
}

Expand Down

0 comments on commit d677040

Please sign in to comment.