Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jun 23, 2017
1 parent 5384a60 commit 7548cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/mssql/qgsmssqlprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ bool QgsMssqlProvider::addFeatures( QgsFeatureList & flist )
// Z and M on the end of a WKT string isn't valid for
// SQL Server so we have to remove it first.
wkt = geom->exportToWkt();
wkt.replace(QRegExp("[mzMZ]+\\s*\\("), "(");
wkt.replace( QRegExp( "[mzMZ]+\\s*\\(" ), "(" );
}
query.addBindValue( wkt );
}
Expand Down Expand Up @@ -1316,7 +1316,7 @@ bool QgsMssqlProvider::changeGeometryValues( const QgsGeometryMap &geometry_map
QString wkt = it->exportToWkt();
// Z and M on the end of a WKT string isn't valid for
// SQL Server so we have to remove it first.
wkt.replace(QRegExp("[mzMZ]+\\s*\\("), "(");
wkt.replace( QRegExp( "[mzMZ]+\\s*\\(" ), "(" );
query.addBindValue( wkt );
}

Expand Down

0 comments on commit 7548cf0

Please sign in to comment.