Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Followup 59db4d0: Cleanup
  • Loading branch information
m-kuhn committed May 11, 2016
1 parent 86ccaff commit 604da1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions src/core/qgsvectorlayereditbuffer.cpp
Expand Up @@ -15,13 +15,7 @@
#include "qgsvectorlayereditbuffer.h"

#include "qgsgeometry.h"
#include "qgscurvepolygonv2.h"
#include "qgscurvev2.h"
#include "qgsgeometrycollectionv2.h"
#include "qgsgeometryfactory.h"
#include "qgsgeometryutils.h"
#include "qgslogger.h"
#include "qgspolygonv2.h"
#include "qgsvectorlayerundocommand.h"
#include "qgsvectordataprovider.h"
#include "qgsvectorlayer.h"
Expand Down
3 changes: 1 addition & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -2372,7 +2372,7 @@ void QgsPostgresProvider::appendGeomParam( const QgsGeometry *geom, QStringList

QString param;

QgsGeometry* convertedGeom = convertToProviderType( geom );
QScopedPointer<QgsGeometry> convertedGeom( convertToProviderType( geom ) );
const unsigned char *buf = convertedGeom ? convertedGeom->asWkb() : geom->asWkb();
size_t wkbSize = convertedGeom ? convertedGeom->wkbSize() : geom->wkbSize();

Expand All @@ -2383,7 +2383,6 @@ void QgsPostgresProvider::appendGeomParam( const QgsGeometry *geom, QStringList
else
param += QString( "\\%1" ).arg(( int ) buf[i], 3, 8, QChar( '0' ) );
}
delete convertedGeom;
params << param;
}

Expand Down

0 comments on commit 604da1f

Please sign in to comment.