Skip to content
Permalink
Browse files

Followup 59db4d0: Cleanup

  • Loading branch information
m-kuhn committed May 9, 2016
1 parent 86ccaff commit 604da1f24d644062e8947af8efaa9189c1b3d10c
Showing with 1 addition and 8 deletions.
  1. +0 −6 src/core/qgsvectorlayereditbuffer.cpp
  2. +1 −2 src/providers/postgres/qgspostgresprovider.cpp
@@ -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"
@@ -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();

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

0 comments on commit 604da1f

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