fix warnings

This commit is contained in:
Juergen E. Fischer 2012-03-31 23:50:46 +02:00
parent 2e5112dc58
commit 767439cfc2
5 changed files with 8 additions and 2 deletions

View File

@ -111,6 +111,8 @@ class ANALYSIS_EXPORT QgsGeometryAnalyzer
@param unlocatedFeatureIds out: ids of event features where linear referencing was not successful @param unlocatedFeatureIds out: ids of event features where linear referencing was not successful
@param locationField1 attribute index of location field in event layer @param locationField1 attribute index of location field in event layer
@param locationField2 attribute index of location end field (or -1 for point layer) @param locationField2 attribute index of location end field (or -1 for point layer)
@param offsetField attribute index for offset field
@param offsetScale factor to scale offset
@param forceSingleGeometry force layer to single point/line type. Feature attributes are copied in case of multiple matches @param forceSingleGeometry force layer to single point/line type. Feature attributes are copied in case of multiple matches
@param memoryProvider memory provider to write output to (can be 0 if output is written to a file) @param memoryProvider memory provider to write output to (can be 0 if output is written to a file)
@param p progress dialog or 0 if no progress dialog should be shown @param p progress dialog or 0 if no progress dialog should be shown
@ -146,8 +148,8 @@ class ANALYSIS_EXPORT QgsGeometryAnalyzer
bool forceSingleType = false ); bool forceSingleType = false );
/**Create geometry offset relative to line geometry. /**Create geometry offset relative to line geometry.
@param geom the geometry to modify @param geom the geometry to modify
@param the line geometry to wich the feature is referenced @param lineGeom the line geometry to which the feature is referenced
@param offset the offset value in layer unit. Negativ value means offset towards left, positive value is offset to the right side*/ @param offset the offset value in layer unit. Negative values mean offset towards left, positive values offset to the right side*/
void createOffsetGeometry( QgsGeometry* geom, QgsGeometry* lineGeom, double offset ); void createOffsetGeometry( QgsGeometry* geom, QgsGeometry* lineGeom, double offset );
QgsPoint createPointOffset( double x, double y, double dist, QgsGeometry* lineGeom ) const; QgsPoint createPointOffset( double x, double y, double dist, QgsGeometry* lineGeom ) const;
unsigned char* locateBetweenWkbString( unsigned char* ptr, QgsMultiPolyline& result, double fromMeasure, double toMeasure ); unsigned char* locateBetweenWkbString( unsigned char* ptr, QgsMultiPolyline& result, double fromMeasure, double toMeasure );

View File

@ -303,6 +303,7 @@ bool QgsCoordinateReferenceSystem::axisInverted() const
? ( orientation == OAO_East || orientation == OAO_West || orientation == OAO_Other ) ? ( orientation == OAO_East || orientation == OAO_West || orientation == OAO_Other )
: ( orientation == OAO_North || orientation == OAO_South ); : ( orientation == OAO_North || orientation == OAO_South );
QgsDebugMsg( QString( "srid:%1 axis0:%2 orientation:%3 inverted:%4" ).arg( mSRID ).arg( axis0 ).arg( OSRAxisEnumToName( orientation ) ).arg( mAxisInverted ) ); QgsDebugMsg( QString( "srid:%1 axis0:%2 orientation:%3 inverted:%4" ).arg( mSRID ).arg( axis0 ).arg( OSRAxisEnumToName( orientation ) ).arg( mAxisInverted ) );
Q_UNUSED( axis0 );
} }
return mAxisInverted != 0; return mAxisInverted != 0;

View File

@ -215,6 +215,7 @@ void addToTmpNodes(QgsSearchTreeNode* node)
void joinTmpNodes(QgsSearchTreeNode* parent, QgsSearchTreeNode* left, QgsSearchTreeNode* right) void joinTmpNodes(QgsSearchTreeNode* parent, QgsSearchTreeNode* left, QgsSearchTreeNode* right)
{ {
bool res; bool res;
Q_UNUSED(res);
if (left) if (left)
{ {

View File

@ -566,6 +566,7 @@ void Screen::copyFromScreen( Character* dest , int startLine , int count ) const
void Screen::getImage( Character* dest, int size, int startLine, int endLine ) const void Screen::getImage( Character* dest, int size, int startLine, int endLine ) const
{ {
Q_UNUSED( size );
Q_ASSERT( startLine >= 0 ); Q_ASSERT( startLine >= 0 );
Q_ASSERT( endLine >= startLine && endLine < hist->getLines() + lines ); Q_ASSERT( endLine >= startLine && endLine < hist->getLines() + lines );

View File

@ -216,6 +216,7 @@ void HeatmapGui::on_mInputVectorCombo_currentIndexChanged( int index )
void HeatmapGui::on_radiusFieldCombo_currentIndexChanged( int index ) void HeatmapGui::on_radiusFieldCombo_currentIndexChanged( int index )
{ {
Q_UNUSED( index );
updateBBox(); updateBBox();
QgsDebugMsg( QString( "Radius Field index changed to %1" ).arg( index ) ); QgsDebugMsg( QString( "Radius Field index changed to %1" ).arg( index ) );
} }