mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
fix warnings
This commit is contained in:
parent
6435a20b33
commit
00d60dbca3
@ -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
|
||||
|
||||
ASTYLEOPTS=$(dirname $0)/astyle.options
|
||||
if type -p cygpath >/dev/null; then
|
||||
ASTYLEOPTS="$(cygpath -w $ASTYLEOPTS)"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
astyleit()
|
||||
{
|
||||
$ASTYLE \
|
||||
"--options=$(dirname $0)/astyle.options" \
|
||||
"$1"
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user