Skip to content
Permalink
Browse files

fix warnings

  • Loading branch information
jef-n committed Jan 17, 2016
1 parent 6435a20 commit 00d60dbca3e0b36850f28b104c0f0ac6cb049058
@@ -14,7 +14,6 @@
# #
###########################################################################


for ASTYLE in $(dirname $0)/qgisstyle $(dirname $0)/RelWithDebInfo/qgisstyle
do
if type -p $ASTYLE >/dev/null; then
@@ -48,14 +47,15 @@ if ! type -p autopep8 >/dev/null; then
}
fi

set -e
ASTYLEOPTS=$(dirname $0)/astyle.options
if type -p cygpath >/dev/null; then
ASTYLEOPTS="$(cygpath -w $ASTYLEOPTS)"
fi

astyleit()
{
$ASTYLE \
"--options=$(dirname $0)/astyle.options" \
"$1"
set -e

astyleit() {
$ASTYLE --options="$ASTYLEOPTS" "$1"
scripts/unify_includes.pl "$1"
}

@@ -54,8 +54,8 @@ QgsGeometry QgsInternalGeometryEngine::extrude( double x, double y )
linesToProcess << static_cast<QgsLineStringV2*>( curve->segmentize() );
}

QgsMultiPolygonV2* multipolygon = linesToProcess.size() > 1 ? new QgsMultiPolygonV2() : nullptr;
QgsPolygonV2* polygon;
QgsMultiPolygonV2 *multipolygon = linesToProcess.size() > 1 ? new QgsMultiPolygonV2() : nullptr;
QgsPolygonV2 *polygon = nullptr;

if ( !linesToProcess.empty() )
{
@@ -324,7 +324,7 @@ int FeaturePart::createCandidatesAtOrderedPositionsOverPoint( double x, double y
double alpha = 0.0;
double deltaX = 0;
double deltaY = 0;
LabelPosition::Quadrant quadrant;
LabelPosition::Quadrant quadrant = LabelPosition::QuadrantAboveLeft;
switch ( position )
{
case QgsPalLayerSettings::TopLeft:
@@ -421,7 +421,6 @@ int FeaturePart::createCandidatesAtOrderedPositionsOverPoint( double x, double y

lPos << new LabelPosition( i, labelX, labelY, labelWidth, labelHeight, angle, cost, this, false, quadrant );


//TODO - tweak
cost += 0.001;

@@ -2110,8 +2110,8 @@ static QVariant fcnAzimuth( const QVariantList& values, const QgsExpressionConte
return 0.0;
else if ( pt1->y() > pt2->y() )
return M_PI;
else return 0;
return 1;
else
return 0;
}

if ( pt1->y() == pt2->y() )
@@ -2120,8 +2120,8 @@ static QVariant fcnAzimuth( const QVariantList& values, const QgsExpressionConte
return M_PI / 2;
else if ( pt1->x() > pt2->x() )
return M_PI + ( M_PI / 2 );
else return 0;
return 1;
else
return 0;
}

if ( pt1->x() < pt2->x() )
@@ -2150,8 +2150,6 @@ static QVariant fcnAzimuth( const QVariantList& values, const QgsExpressionConte
+ ( M_PI + ( M_PI / 2 ) );
}
}

return QVariant();
}

static QVariant fcnExtrude( const QVariantList& values, const QgsExpressionContext*, QgsExpression* parent )
@@ -84,7 +84,7 @@ Qgs25DRenderer::Qgs25DRenderer()
setShadowSpread( 4 );
setShadowColor( QColor( "#1111111" ) );

setHeight( 20 );
setHeight( "20" );
setAngle( 40 );

QgsFeatureRequest::OrderBy orderBy;
@@ -35,7 +35,7 @@ struct SpatialiteBlobHeader
{
unsigned char start;
unsigned char endianness;
uint32_t srid;
int32_t srid;
double mbrMinX;
double mbrMinY;
double mbrMaxX;

0 comments on commit 00d60db

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