Skip to content

Commit

Permalink
fix nightly build and cppcheck in qwtpolar-0.1 (followup 0d2c564)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 24, 2014
1 parent 569e571 commit c3f4bef
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/app/gps/qwtpolar-1.0/qwt_polar_grid.cpp
Expand Up @@ -1048,7 +1048,7 @@ int QwtPolarGrid::marginHint() const
*/
const QwtScaleDraw *QwtPolarGrid::scaleDraw( int axisId ) const
{
if ( axisId >= QwtPolar::AxisLeft || axisId <= QwtPolar::AxisBottom )
if ( axisId >= QwtPolar::AxisLeft && axisId <= QwtPolar::AxisBottom )
return static_cast<QwtScaleDraw *>( d_data->axisData[axisId].scaleDraw );

return NULL;
Expand All @@ -1063,7 +1063,7 @@ const QwtScaleDraw *QwtPolarGrid::scaleDraw( int axisId ) const
*/
QwtScaleDraw *QwtPolarGrid::scaleDraw( int axisId )
{
if ( axisId >= QwtPolar::AxisLeft || axisId <= QwtPolar::AxisBottom )
if ( axisId >= QwtPolar::AxisLeft && axisId <= QwtPolar::AxisBottom )
return static_cast<QwtScaleDraw *>( d_data->axisData[axisId].scaleDraw );

return NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/app/gps/qwtpolar-1.0/qwt_polar_renderer.cpp
Expand Up @@ -302,7 +302,7 @@ void QwtPolarRenderer::render( QwtPolarPlot *plot,
renderLegend( painter, layout->legendRect() );
painter->restore();

const QRectF canvasRect = layout->canvasRect();
const QRectF &canvasRect = layout->canvasRect();

painter->save();
painter->setClipRect( canvasRect );
Expand Down
1 change: 1 addition & 0 deletions src/plugins/dxf2shp_converter/shapelib-1.2.10/shpopen.c
Expand Up @@ -669,6 +669,7 @@ SHPCreate( const char * pszLayer, int nShapeType )
{
free( pszBasename );
free( pszFullname );
fclose( fpSHP );
return( NULL );
}

Expand Down
13 changes: 6 additions & 7 deletions src/plugins/globe/osgEarthUtil/Controls.cpp
Expand Up @@ -1799,20 +1799,19 @@ ControlNodeBin::draw( const ControlContext& context, bool newContext, int bin )

if ( _sortingEnabled && _sortByDistance )
{
for( ControlNodeCollection::iterator i = _controlNodes.begin(); i != _controlNodes.end(); )
for( ControlNodeCollection::iterator i = _controlNodes.begin(); i != _controlNodes.end(); ++i )
{
ControlNode* node = i->second.get();
if ( node->getNumParents() == 0 )
{
_renderNodes.erase( node );
i = _controlNodes.erase( i );
_controlNodes.erase( i );
}
else
{
ControlNode::PerViewData& nodeData = node->getData( context._view );
byDepth.insert( ControlNodePair(nodeData._screenPos.z(), node) );
++i;
}
{
ControlNode::PerViewData& nodeData = node->getData( context._view );
byDepth.insert( ControlNodePair(nodeData._screenPos.z(), node) );
}
}

drawList = &byDepth;
Expand Down

0 comments on commit c3f4bef

Please sign in to comment.