Skip to content

Commit

Permalink
Pass small objects by value
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 28, 2021
1 parent 89f0382 commit dfaa700
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/providers/hana/qgshanafeatureiterator.cpp
Expand Up @@ -31,7 +31,7 @@

namespace
{
QgsRectangle clampBBOX( QgsRectangle bbox, const QgsCoordinateReferenceSystem &crs, double allowedExcessFactor )
QgsRectangle clampBBOX( const QgsRectangle &bbox, const QgsCoordinateReferenceSystem &crs, double allowedExcessFactor )
{
// In geographic CRS', HANA will reject any points outside the "normalized"
// range, which is (in radian) [-PI;PI] for longitude and [-PI/2;PI/2] for
Expand Down
2 changes: 1 addition & 1 deletion src/providers/hana/qgshanaprovider.cpp
Expand Up @@ -119,7 +119,7 @@ namespace
void SetStatementValue(
PreparedStatementRef &stmt,
unsigned short paramIndex,
const FieldInfo &fieldInfo,
FieldInfo fieldInfo,
const QVariant &value )
{
bool isNull = ( value.isNull() || !value.isValid() );
Expand Down

0 comments on commit dfaa700

Please sign in to comment.