Skip to content

Commit 0992180

Browse files
committed
KeyboardControlHandler: remove unused parameter
1 parent f4744f6 commit 0992180

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/plugins/globe/globe_plugin.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,9 @@ void GlobePlugin::run()
310310

311311
// add our handlers
312312
mOsgViewer->addEventHandler( new FlyToExtentHandler( this ) );
313-
mOsgViewer->addEventHandler( new KeyboardControlHandler( manip, mQGisIface ) );
313+
mOsgViewer->addEventHandler( new KeyboardControlHandler( manip ) );
314314

315-
#ifdef HAVE_OSGEARTH_ELEVATION_QUERY
316-
#else
315+
#ifndef HAVE_OSGEARTH_ELEVATION_QUERY
317316
mOsgViewer->addEventHandler( new QueryCoordinatesHandler( this, mElevationManager,
318317
mMapNode->getMap()->getProfile()->getSRS() )
319318
);

src/plugins/globe/globe_plugin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class QueryCoordinatesHandler : public osgGA::GUIEventHandler
200200
class KeyboardControlHandler : public osgGA::GUIEventHandler
201201
{
202202
public:
203-
KeyboardControlHandler( osgEarth::Util::EarthManipulator* manip, QgisInterface * ) : _manip( manip ) { }
203+
KeyboardControlHandler( osgEarth::Util::EarthManipulator* manip ) : _manip( manip ) { }
204204

205205
bool handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa );
206206

0 commit comments

Comments
 (0)