Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix travis build
  • Loading branch information
nyalldawson committed Oct 13, 2017
1 parent e13a4aa commit 1852d2b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/geometry/qgsgeos.cpp
Expand Up @@ -325,7 +325,7 @@ std::unique_ptr<QgsAbstractGeometry> QgsGeos::subdivide( int maxNodes, QString *
}
CATCH_GEOS_WITH_ERRMSG( nullptr )

return parts;
return std::move( parts );
}

QgsAbstractGeometry *QgsGeos::combine( const QgsAbstractGeometry *geom, QString *errorMsg ) const
Expand Down Expand Up @@ -1083,7 +1083,7 @@ std::unique_ptr<QgsAbstractGeometry> QgsGeos::fromGeos( const GEOSGeometry *geos
multiPoint->addGeometry( coordSeqPoint( cs, 0, hasZ, hasM ).clone() );
}
}
return multiPoint;
return std::move( multiPoint );
}
case GEOS_MULTILINESTRING:
{
Expand All @@ -1097,7 +1097,7 @@ std::unique_ptr<QgsAbstractGeometry> QgsGeos::fromGeos( const GEOSGeometry *geos
multiLineString->addGeometry( line.release() );
}
}
return multiLineString;
return std::move( multiLineString );
}
case GEOS_MULTIPOLYGON:
{
Expand All @@ -1112,7 +1112,7 @@ std::unique_ptr<QgsAbstractGeometry> QgsGeos::fromGeos( const GEOSGeometry *geos
multiPolygon->addGeometry( poly.release() );
}
}
return multiPolygon;
return std::move( multiPolygon );
}
case GEOS_GEOMETRYCOLLECTION:
{
Expand All @@ -1126,7 +1126,7 @@ std::unique_ptr<QgsAbstractGeometry> QgsGeos::fromGeos( const GEOSGeometry *geos
geomCollection->addGeometry( geom.release() );
}
}
return geomCollection;
return std::move( geomCollection );
}
}
return nullptr;
Expand Down

0 comments on commit 1852d2b

Please sign in to comment.