Skip to content

Commit 36630af

Browse files
committedNov 17, 2013
fix warnings
1 parent bc73b4e commit 36630af

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed
 

‎src/plugins/globe/globe_plugin.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ void GlobePlugin::run()
286286

287287
// Initialize the sky node if required
288288
setSkyParameters( settings.value( "/Plugin-Globe/skyEnabled", false ).toBool()
289-
, settings.value( "/Plugin-Globe/skyDateTime", QDateTime() ).toDateTime()
290-
, settings.value( "/Plugin-Globe/skyAutoAmbient", false ).toBool() );
289+
, settings.value( "/Plugin-Globe/skyDateTime", QDateTime() ).toDateTime()
290+
, settings.value( "/Plugin-Globe/skyAutoAmbient", false ).toBool() );
291291

292292
// create a surface to house the controls
293293
#if OSGEARTH_VERSION_GREATER_OR_EQUAL( 2, 1, 1 )
@@ -847,9 +847,9 @@ void GlobePlugin::setSkyParameters( bool enabled, const QDateTime& dateTime, boo
847847
if ( !mSkyNode.get() )
848848
mSkyNode = new SkyNode( mMapNode->getMap() );
849849

850-
#if OSGEARTH_VERSION_GREATER_OR_EQUAL( 2, 4, 0 )
850+
#if OSGEARTH_VERSION_GREATER_OR_EQUAL( 2, 4, 0 )
851851
mSkyNode->setAutoAmbience( autoAmbience );
852-
#endif
852+
#endif
853853
mSkyNode->setDateTime( dateTime.date().year()
854854
, dateTime.date().month()
855855
, dateTime.date().day()
@@ -902,6 +902,10 @@ void GlobePlugin::help()
902902
void GlobePlugin::placeNode( osg::Node* node, double lat, double lon, double alt /*= 0.0*/ )
903903
{
904904
#ifdef HAVE_OSGEARTH_ELEVATION_QUERY
905+
Q_UNUSED( node );
906+
Q_UNUSED( lat );
907+
Q_UNUSED( lon );
908+
Q_UNUSED( alt );
905909
#else
906910
// get elevation
907911
double elevation = 0.0;

‎src/providers/oracle/qgsoraclefeatureiterator.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ QgsOracleFeatureIterator::QgsOracleFeatureIterator( QgsOracleProvider *p, const
4444

4545
switch ( request.filterType() )
4646
{
47+
case QgsFeatureRequest::FilterExpression:
48+
break;
49+
4750
case QgsFeatureRequest::FilterRect:
4851
if ( !P->mGeometryColumn.isNull() )
4952
{

0 commit comments

Comments
 (0)
Please sign in to comment.