Git commit cda9229adedc478da264eaa1d0ccc88411a15a8f by Laszlo Papp. Committed on 01/04/2011 at 00:53. Pushed by lpapp into branch 'master'. Change the "core/..." includes to and eliminate the Q_UNUSED M +3 -3 audio/sound.cpp M +1 -2 core/gluonobject.cpp M +1 -1 core/gluonobject.h M +2 -3 core/messagehandler.cpp M +1 -2 core/scriptengine.cpp M +1 -1 creator/dialogs/projectselectiondialog.cpp M +1 -1 creator/lib/dockmanager.h M +1 -1 creator/lib/filemanager.h M +1 -1 creator/lib/historymanager.h M +1 -2 creator/lib/models/componentmodel.cpp M +2 -2 creator/lib/models/models.h M +1 -2 creator/lib/models/modeltest.cpp M +3 -10 creator/lib/models/projectmodel.cpp M +2 -7 creator/lib/models/scenemodel.cpp M +1 -1 creator/lib/objectmanager.h M +1 -1 creator/lib/propertychangedcommand.cpp M +1 -1 creator/lib/selectionmanager.h M +2 -1 creator/lib/widgets/filearea.cpp M +2 -2 creator/lib/widgets/propertywidgetitemfactory.cpp M +2 -1 creator/lib/widgets/propertywidgetitemnewcustomproperty.cpp M +2 -2 creator/lib/widgets/propertywidgetitems/propertywidgetitemfactory.cpp M +1 -3 creator/plugins/docks/projectdock/projectdock.cpp M +1 -2 creator/plugins/docks/propertiesdock/propertywidgetitems/quaternionpropertywidgetitem.cpp M +1 -2 creator/plugins/docks/scenedock/scenedock.cpp M +1 -3 creator/plugins/kparts/codeeditorpart/GraphicsItem/OrientedEdgeItem.cpp M +1 -2 creator/plugins/kparts/codeeditorpart/Interface/MainWindow.cpp M +2 -4 creator/plugins/kparts/codeeditorpart/Models/model_GraphProperties.cpp M +0 -2 creator/plugins/kparts/codeeditorpart/codewidgetkpart.cpp M +4 -4 engine/asset.h M +4 -5 engine/component.cpp M +1 -2 engine/components/audio/soundemitter/soundemittercomponent.cpp M +1 -3 engine/components/audio/soundlistener/soundlistenercomponent.cpp M +1 -3 engine/components/graphics/animatedspriterenderer/animatedspriterenderercomponent.cpp M +1 -3 engine/components/graphics/beamrenderer/beamrenderercomponent.cpp M +1 -3 engine/components/graphics/cameracontroller/cameracontrollercomponent.cpp M +1 -3 engine/components/graphics/discrenderer/discrenderercomponent.cpp M +1 -3 engine/components/graphics/discsectionrenderer/discsectionrenderercomponent.cpp M +1 -3 engine/components/graphics/spriterenderer/spriterenderercomponent.cpp M +1 -3 engine/components/graphics/uimanager/uimanagercomponent.cpp M +1 -3 engine/components/other/spherecollision/spherecollisioncomponent.cpp M +1 -2 engine/components/scripting/scriptingcomponentprivate.cpp M +6 -7 engine/components/scripting/scriptingengine.cpp M +3 -3 engine/components/scripting/scriptingengine.h M +5 -7 engine/game.cpp M +2 -1 engine/gameobject.cpp M +1 -1 engine/gameprivate.cpp M +4 -4 engine/gameproject.cpp M +2 -2 engine/gameprojectprivate.cpp M +2 -1 engine/prefab.h M +6 -5 engine/savable.cpp M +4 -3 engine/scene.cpp M +2 -2 engine/sceneprivate.cpp M +2 -1 graphics/materialinstance.h M +2 -3 input/inputmanager.h M +1 -2 player/kde/mainwindow.cpp M +1 -5 player/kdeext/delegates/itemsviewdelegate.cpp M +1 -2 player/kdeext/gamesoverlay.cpp M +2 -4 player/kdeext/models/listmodel.cpp M +1 -3 player/kdeext/views/achievementsview.cpp M +1 -2 player/lib/models/commentsmodel.cpp M +3 -6 player/plasmoid/glfboapplet.cpp M +1 -3 player/plasmoid/overlay.cpp M +1 -4 player/plasmoid/plasmaapplet.cpp M +1 -3 player/plasmoid/views/achievementsview.cpp M +1 -2 player/plasmoid/views/gamesviewitem.cpp M +2 -5 player/qt/mainwindow.cpp M +1 -3 player/qtext/actionsdialog.cpp M +2 -5 player/qtext/mainwindow.cpp M +1 -3 player/qtext/views/achievementsview.cpp M +1 -2 player/qtext/views/gamesviewitem.cpp http://commits.kde.org/gluon/cda9229adedc478da264eaa1d0ccc88411a15a8f diff --git a/audio/sound.cpp b/audio/sound.cpp index f83e61f..85fe361 100644 --- a/audio/sound.cpp +++ b/audio/sound.cpp @@ -22,10 +22,10 @@ #include "engine.h" -#include "core/debughelper.h" - -#include #include "alure/include/AL/alure.h" + +#include + #include using namespace GluonAudio; diff --git a/core/gluonobject.cpp b/core/gluonobject.cpp index d85dbdc..7752dcb 100644 --- a/core/gluonobject.cpp +++ b/core/gluonobject.cpp @@ -782,9 +782,8 @@ GluonObject::shouldSerializeChildren() const } void -GluonObject::handleMessage(const QString& message) +GluonObject::handleMessage(const QString& /* message */ ) { - Q_UNUSED(message) } #include "gluonobject.moc" diff --git a/core/gluonobject.h b/core/gluonobject.h index 09b232b..4a5a139 100644 --- a/core/gluonobject.h +++ b/core/gluonobject.h @@ -409,7 +409,7 @@ namespace GluonCore * * \param info The MetaInfo that was just created. */ - virtual void populateMetaInfo(MetaInfo* info) { Q_UNUSED(info); } + virtual void populateMetaInfo(MetaInfo* /* info */) { } private: Q_DISABLE_COPY(GluonObject) diff --git a/core/messagehandler.cpp b/core/messagehandler.cpp index 62ef95b..3b2be97 100644 --- a/core/messagehandler.cpp +++ b/core/messagehandler.cpp @@ -54,16 +54,15 @@ void MessageHandler::unsubscribe(const QString& message, GluonObject* receiver) d->subscribedObjects.remove(message, QWeakPointer(receiver)); } -void MessageHandler::unsubscribe(const QString& message, const QScriptValue& receiver, const QScriptValue& thisObject) +void MessageHandler::unsubscribe(const QString& message, const QScriptValue& receiver, const QScriptValue& /* thisObject */) { - Q_UNUSED(thisObject) QMultiHash::iterator itr; for(itr = d->subscribedFunctions.find(message); itr != d->subscribedFunctions.end() && itr.key() == message; ++itr) { if(itr.value().equals(receiver)) break; } - + if(itr != d->subscribedFunctions.end() && itr.key() == message) { d->subscribedFunctions.erase(itr); diff --git a/core/scriptengine.cpp b/core/scriptengine.cpp index 3ccb695..f8d911b 100644 --- a/core/scriptengine.cpp +++ b/core/scriptengine.cpp @@ -46,10 +46,9 @@ using namespace GluonCore; GLUON_DEFINE_SINGLETON(ScriptEngine) -ScriptEngine::ScriptEngine(QObject* parent) +ScriptEngine::ScriptEngine(QObject* /* parent */ ) : d(new Private()) { - Q_UNUSED(parent) } ScriptEngine::~ScriptEngine() diff --git a/creator/dialogs/projectselectiondialog.cpp b/creator/dialogs/projectselectiondialog.cpp index 49d6bd3..f1f208b 100644 --- a/creator/dialogs/projectselectiondialog.cpp +++ b/creator/dialogs/projectselectiondialog.cpp @@ -25,7 +25,7 @@ #include "recentprojectsdialogpage.h" #include "openprojectdialogpage.h" -#include "core/debughelper.h" +#include #include #include diff --git a/creator/lib/dockmanager.h b/creator/lib/dockmanager.h index fc944b6..52b45c5 100644 --- a/creator/lib/dockmanager.h +++ b/creator/lib/dockmanager.h @@ -23,7 +23,7 @@ #include "gluoncreator_macros.h" -#include "core/singleton.h" +#include class QDockWidget; class KXmlGuiWindow; diff --git a/creator/lib/filemanager.h b/creator/lib/filemanager.h index 41d0da8..b6781a7 100644 --- a/creator/lib/filemanager.h +++ b/creator/lib/filemanager.h @@ -22,7 +22,7 @@ #include "gluoncreator_macros.h" -#include "core/singleton.h" +#include class KToolBar; diff --git a/creator/lib/historymanager.h b/creator/lib/historymanager.h index fbba00f..af4f755 100644 --- a/creator/lib/historymanager.h +++ b/creator/lib/historymanager.h @@ -22,7 +22,7 @@ #include "gluoncreator_macros.h" -#include "core/singleton.h" +#include class KActionCollection; class QUndoCommand; diff --git a/creator/lib/models/componentmodel.cpp b/creator/lib/models/componentmodel.cpp index ba2c117..033f8e7 100644 --- a/creator/lib/models/componentmodel.cpp +++ b/creator/lib/models/componentmodel.cpp @@ -297,8 +297,7 @@ ComponentModel::rowCount( const QModelIndex& parent ) const } int -ComponentModel::columnCount( const QModelIndex& parent ) const +ComponentModel::columnCount( const QModelIndex& /* parent */ ) const { - Q_UNUSED( parent ) return 1; } diff --git a/creator/lib/models/models.h b/creator/lib/models/models.h index 336d3b8..42286bb 100644 --- a/creator/lib/models/models.h +++ b/creator/lib/models/models.h @@ -22,7 +22,7 @@ #include "gluoncreator_macros.h" -#include "core/singleton.h" +#include namespace GluonCreator { @@ -44,7 +44,7 @@ namespace GluonCreator Models(); ~Models(); Q_DISABLE_COPY( Models ) - + class Private; Private* d; }; diff --git a/creator/lib/models/modeltest.cpp b/creator/lib/models/modeltest.cpp index 456a694..bd264bf 100644 --- a/creator/lib/models/modeltest.cpp +++ b/creator/lib/models/modeltest.cpp @@ -458,9 +458,8 @@ void ModelTest::data() \sa rowsInserted() */ -void ModelTest::rowsAboutToBeInserted( const QModelIndex& parent, int start, int end ) +void ModelTest::rowsAboutToBeInserted( const QModelIndex& parent, int start, int /* end */ ) { - Q_UNUSED( end ) Changing c; c.parent = parent; c.oldSize = model->rowCount( parent ); diff --git a/creator/lib/models/projectmodel.cpp b/creator/lib/models/projectmodel.cpp index 9d6668f..2ebd314 100644 --- a/creator/lib/models/projectmodel.cpp +++ b/creator/lib/models/projectmodel.cpp @@ -140,9 +140,8 @@ ProjectModel::data( const QModelIndex& index, int role ) const } int -ProjectModel::columnCount( const QModelIndex& parent ) const +ProjectModel::columnCount( const QModelIndex& /* parent */ ) const { - Q_UNUSED( parent ) return 1; } @@ -273,12 +272,8 @@ ProjectModel::objectRow ( GluonCore::GluonObject* object ) const } QVariant -ProjectModel::headerData( int section, Qt::Orientation orientation, int role ) const +ProjectModel::headerData( int /* section */, Qt::Orientation /* orientation */, int /* role */ ) const { - Q_UNUSED( section ) - Q_UNUSED( orientation ) - Q_UNUSED( role ) - return QVariant(); } @@ -363,10 +358,8 @@ QMimeData* ProjectModel::mimeData( const QModelIndexList& indexes ) const } bool -ProjectModel::dropMimeData( const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent ) +ProjectModel::dropMimeData( const QMimeData* data, Qt::DropAction action, int /* row */, int /* column */, const QModelIndex& parent ) { - Q_UNUSED( row ) - Q_UNUSED( column ) DEBUG_FUNC_NAME if( action == Qt::IgnoreAction ) diff --git a/creator/lib/models/scenemodel.cpp b/creator/lib/models/scenemodel.cpp index a5c297b..2173dc0 100644 --- a/creator/lib/models/scenemodel.cpp +++ b/creator/lib/models/scenemodel.cpp @@ -189,12 +189,8 @@ QModelIndex SceneModel::index( int row, int column, const QModelIndex& parent ) return QModelIndex(); } -QVariant SceneModel::headerData( int section, Qt::Orientation orientation, int role ) const +QVariant SceneModel::headerData( int /* section */, Qt::Orientation /* orientation */, int /* role */ ) const { - Q_UNUSED( section ) - Q_UNUSED( orientation ) - Q_UNUSED( role ) - return QVariant(); } @@ -240,9 +236,8 @@ QMimeData* SceneModel::mimeData( const QModelIndexList& indexes ) const return data; } -bool SceneModel::dropMimeData( const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent ) +bool SceneModel::dropMimeData( const QMimeData* data, Qt::DropAction action, int row, int /* column */, const QModelIndex& parent ) { - Q_UNUSED( column ) DEBUG_FUNC_NAME if( action == Qt::IgnoreAction ) diff --git a/creator/lib/objectmanager.h b/creator/lib/objectmanager.h index 5b58812..60804bc 100644 --- a/creator/lib/objectmanager.h +++ b/creator/lib/objectmanager.h @@ -23,7 +23,7 @@ #include "gluoncreator_macros.h" -#include "core/singleton.h" +#include namespace GluonCore { diff --git a/creator/lib/propertychangedcommand.cpp b/creator/lib/propertychangedcommand.cpp index ea9d510..05e395d 100644 --- a/creator/lib/propertychangedcommand.cpp +++ b/creator/lib/propertychangedcommand.cpp @@ -19,7 +19,7 @@ #include "propertychangedcommand.h" -#include "core/gluonobject.h" +#include #include diff --git a/creator/lib/selectionmanager.h b/creator/lib/selectionmanager.h index d8b403e..701ec32 100644 --- a/creator/lib/selectionmanager.h +++ b/creator/lib/selectionmanager.h @@ -22,7 +22,7 @@ #include "gluoncreator_macros.h" -#include "core/singleton.h" +#include namespace GluonCore { diff --git a/creator/lib/widgets/filearea.cpp b/creator/lib/widgets/filearea.cpp index 5dc0a08..b29dafa 100644 --- a/creator/lib/widgets/filearea.cpp +++ b/creator/lib/widgets/filearea.cpp @@ -19,9 +19,10 @@ #include "filearea.h" -#include "core/debughelper.h" #include "filemanager.h" +#include + #include #include #include diff --git a/creator/lib/widgets/propertywidgetitemfactory.cpp b/creator/lib/widgets/propertywidgetitemfactory.cpp index d5f873c..3d8920a 100644 --- a/creator/lib/widgets/propertywidgetitemfactory.cpp +++ b/creator/lib/widgets/propertywidgetitemfactory.cpp @@ -22,8 +22,8 @@ #include "enumpropertywidgetitem.h" #include "gluonobjectpropertywidgetitem.h" -#include "core/debughelper.h" -#include "core/gluonobjectfactory.h" +#include +#include #include diff --git a/creator/lib/widgets/propertywidgetitemnewcustomproperty.cpp b/creator/lib/widgets/propertywidgetitemnewcustomproperty.cpp index 86c422b..fe408c7 100644 --- a/creator/lib/widgets/propertywidgetitemnewcustomproperty.cpp +++ b/creator/lib/widgets/propertywidgetitemnewcustomproperty.cpp @@ -20,7 +20,8 @@ #include "propertywidgetitemnewcustomproperty.h" #include "objectmanager.h" -#include "core/gluonobject.h" + +#include #include diff --git a/creator/lib/widgets/propertywidgetitems/propertywidgetitemfactory.cpp b/creator/lib/widgets/propertywidgetitems/propertywidgetitemfactory.cpp index c57e1f7..b884881 100644 --- a/creator/lib/widgets/propertywidgetitems/propertywidgetitemfactory.cpp +++ b/creator/lib/widgets/propertywidgetitems/propertywidgetitemfactory.cpp @@ -18,8 +18,6 @@ */ #include "propertywidgetitemfactory.h" -#include "core/debughelper.h" - #include "nullpropertywidgetitem.h" #include "textpropertywidgetitem.h" #include "vectorpropertywidgetitem.h" @@ -31,6 +29,8 @@ #include "quaternionpropertywidgetitem.h" #include "qrealpropertywidgetitem.h" +#include + using namespace GluonCreator; GLUON_DEFINE_SINGLETON(PropertyWidgetItemFactory) diff --git a/creator/plugins/docks/projectdock/projectdock.cpp b/creator/plugins/docks/projectdock/projectdock.cpp index 3d8afd6..9674533 100644 --- a/creator/plugins/docks/projectdock/projectdock.cpp +++ b/creator/plugins/docks/projectdock/projectdock.cpp @@ -270,10 +270,8 @@ void ProjectDock::activated( QModelIndex index ) } } -void ProjectDock::selectionChanged( const QItemSelection& selected, const QItemSelection& deselected ) +void ProjectDock::selectionChanged( const QItemSelection& selected, const QItemSelection& /* deselected */ ) { - Q_UNUSED( deselected ) - SelectionManager::SelectionList selection; foreach( const QItemSelectionRange & range, selected ) { diff --git a/creator/plugins/docks/propertiesdock/propertywidgetitems/quaternionpropertywidgetitem.cpp b/creator/plugins/docks/propertiesdock/propertywidgetitems/quaternionpropertywidgetitem.cpp index ce6ef5f..1b2f7ed 100644 --- a/creator/plugins/docks/propertiesdock/propertywidgetitems/quaternionpropertywidgetitem.cpp +++ b/creator/plugins/docks/propertiesdock/propertywidgetitems/quaternionpropertywidgetitem.cpp @@ -126,9 +126,8 @@ void QuaternionPropertyWidgetItem::valueChanged( QVariant value ) valueChanged( value.toDouble() ); } -void QuaternionPropertyWidgetItem::valueChanged( double value ) +void QuaternionPropertyWidgetItem::valueChanged( double /* value */ ) { - Q_UNUSED( value ) d->value = QQuaternion::fromAxisAndAngle( d->x->value(), d->y->value(), d->z->value(), d->angle->value() ); PropertyWidgetItem::valueChanged( d->value ); } diff --git a/creator/plugins/docks/scenedock/scenedock.cpp b/creator/plugins/docks/scenedock/scenedock.cpp index 948ff46..78095b2 100644 --- a/creator/plugins/docks/scenedock/scenedock.cpp +++ b/creator/plugins/docks/scenedock/scenedock.cpp @@ -110,9 +110,8 @@ SceneDock::~SceneDock() delete d; } -void SceneDock::selectionChanged( QItemSelection selected, QItemSelection deselected ) +void SceneDock::selectionChanged( QItemSelection selected, QItemSelection /* deselected */ ) { - Q_UNUSED( deselected ) DEBUG_FUNC_NAME SelectionManager::SelectionList selection; diff --git a/creator/plugins/kparts/codeeditorpart/GraphicsItem/OrientedEdgeItem.cpp b/creator/plugins/kparts/codeeditorpart/GraphicsItem/OrientedEdgeItem.cpp index a5be1e6..b4f2d80 100644 --- a/creator/plugins/kparts/codeeditorpart/GraphicsItem/OrientedEdgeItem.cpp +++ b/creator/plugins/kparts/codeeditorpart/GraphicsItem/OrientedEdgeItem.cpp @@ -254,10 +254,8 @@ void OrientedEdgeItem::updateAttributes() update(); } -void OrientedEdgeItem::paint( QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget ) +void OrientedEdgeItem::paint( QPainter* painter, const QStyleOptionGraphicsItem* /* option */, QWidget* /* widget */ ) { - Q_UNUSED( option ) - Q_UNUSED( widget ) if( isSelected() ) { painter->setPen( QPen( Qt::black, _edge->width(), Qt::DotLine ) ); diff --git a/creator/plugins/kparts/codeeditorpart/Interface/MainWindow.cpp b/creator/plugins/kparts/codeeditorpart/Interface/MainWindow.cpp index 0897c21..5d17441 100644 --- a/creator/plugins/kparts/codeeditorpart/Interface/MainWindow.cpp +++ b/creator/plugins/kparts/codeeditorpart/Interface/MainWindow.cpp @@ -275,9 +275,8 @@ void MainWindow::exportFromThisNode( GluonCore::GluonObject* o, QTextStream* fil } } -void MainWindow::exportCode( bool checked ) +void MainWindow::exportCode( bool /* checked */ ) { - Q_UNUSED( checked ) if( GluonEngine::Game::instance()->gameProject()->findItemByName( "vn-" + GluonEngine::Game::instance()->currentScene()->name() ) == NULL ) { GluonEngine::Asset* script = new GluonEngine::Asset(); diff --git a/creator/plugins/kparts/codeeditorpart/Models/model_GraphProperties.cpp b/creator/plugins/kparts/codeeditorpart/Models/model_GraphProperties.cpp index 9c5b3c0..ca10986 100644 --- a/creator/plugins/kparts/codeeditorpart/Models/model_GraphProperties.cpp +++ b/creator/plugins/kparts/codeeditorpart/Models/model_GraphProperties.cpp @@ -29,9 +29,8 @@ GraphPropertiesModel::GraphPropertiesModel( QObject* parent ) : QAbstractTableMo _metaObject = 0; } -int GraphPropertiesModel::rowCount( const QModelIndex& parent ) const +int GraphPropertiesModel::rowCount( const QModelIndex& /* parent */ ) const { - Q_UNUSED( parent ) // if there's no dataSource, there's no data. return zero. // else return the size of properties of the object. if( _dataSource == 0 ) @@ -42,10 +41,9 @@ int GraphPropertiesModel::rowCount( const QModelIndex& parent ) const return _dataSource->dynamicPropertyNames().size(); } -int GraphPropertiesModel::columnCount( const QModelIndex& parent ) const +int GraphPropertiesModel::columnCount( const QModelIndex& /* parent */ ) const { // should always be 2. //! WARNING: wtf? should always be 2 but return 3? - Q_UNUSED( parent ) return 3; //Name - Value - Type } diff --git a/creator/plugins/kparts/codeeditorpart/codewidgetkpart.cpp b/creator/plugins/kparts/codeeditorpart/codewidgetkpart.cpp index 6f3e233..ba85b3a 100644 --- a/creator/plugins/kparts/codeeditorpart/codewidgetkpart.cpp +++ b/creator/plugins/kparts/codeeditorpart/codewidgetkpart.cpp @@ -27,10 +27,8 @@ using namespace GluonCreator; K_PLUGIN_FACTORY( CodeWidgetFactory, registerPlugin(); ) // produce a factory K_EXPORT_PLUGIN( CodeWidgetFactory( "Code Editor", "Code Editor" ) ) -CodeWidgetKpart::CodeWidgetKpart( QWidget* parentWidget, QObject* parent, const QVariantList& ) : KParts::ReadWritePart( parent ) { - Q_UNUSED( parentWidget ) KGlobal::locale()->insertCatalog( "gluoncreator" ); setComponentData( CodeWidgetFactory::componentData() ); diff --git a/engine/asset.h b/engine/asset.h index cecba95..81c5a8e 100644 --- a/engine/asset.h +++ b/engine/asset.h @@ -21,14 +21,14 @@ #ifndef GLUON_ENGINE_ASSET_H #define GLUON_ENGINE_ASSET_H -#include "core/gluonobject.h" - #include "gluon_engine_export.h" +#include + +#include +#include #include #include -#include -#include class QAction; class QMimeData; diff --git a/engine/component.cpp b/engine/component.cpp index bcd55c1..0e2eb1c 100644 --- a/engine/component.cpp +++ b/engine/component.cpp @@ -22,9 +22,10 @@ #include "componentprivate.h" #include "gameobject.h" -#include "core/debughelper.h" #include "asset.h" +#include + #include #include @@ -65,15 +66,13 @@ Component::toVariant( GluonCore::GluonObject* wrapThis ) } void -Component::update( int elapsedMilliseconds ) +Component::update( int /* elapsedMilliseconds */ ) { - Q_UNUSED( elapsedMilliseconds ) } void -Component::draw( int timeLapse ) +Component::draw( int /* timeLapse */ ) { - Q_UNUSED( timeLapse ) } void diff --git a/engine/components/audio/soundemitter/soundemittercomponent.cpp b/engine/components/audio/soundemitter/soundemittercomponent.cpp index 3328c80..e4e0d8d 100644 --- a/engine/components/audio/soundemitter/soundemittercomponent.cpp +++ b/engine/components/audio/soundemitter/soundemittercomponent.cpp @@ -128,9 +128,8 @@ void SoundEmitterComponent::start() d->sound->play(); } -void SoundEmitterComponent::draw( int timeLapse ) +void SoundEmitterComponent::draw( int /* timeLapse */ ) { - Q_UNUSED( timeLapse ) if( d->sound->isValid() ) d->sound->setPosition( gameObject()->position() ); } diff --git a/engine/components/audio/soundlistener/soundlistenercomponent.cpp b/engine/components/audio/soundlistener/soundlistenercomponent.cpp index aaf703f..cb9cf2f 100644 --- a/engine/components/audio/soundlistener/soundlistenercomponent.cpp +++ b/engine/components/audio/soundlistener/soundlistenercomponent.cpp @@ -51,10 +51,8 @@ void SoundListenerComponent::start() GluonAudio::Engine::instance()->setListenerPosition( gameObject()->position() ); } -void SoundListenerComponent::draw( int timeLapse ) +void SoundListenerComponent::draw( int /* timeLapse */ ) { - Q_UNUSED( timeLapse ) - if( isActive() ) GluonAudio::Engine::instance()->setListenerPosition( gameObject()->position() ); } diff --git a/engine/components/graphics/animatedspriterenderer/animatedspriterenderercomponent.cpp b/engine/components/graphics/animatedspriterenderer/animatedspriterenderercomponent.cpp index 4d381f2..105c908 100644 --- a/engine/components/graphics/animatedspriterenderer/animatedspriterenderercomponent.cpp +++ b/engine/components/graphics/animatedspriterenderer/animatedspriterenderercomponent.cpp @@ -153,10 +153,8 @@ void AnimatedSpriteRendererComponent::update ( int elapsedMilliseconds ) d->currentFrame = d->startFrames.at(d->currentAnimation); } -void AnimatedSpriteRendererComponent::draw( int timeLapse ) +void AnimatedSpriteRendererComponent::draw( int /* timeLapse */ ) { - Q_UNUSED( timeLapse ) - if( d->item ) { QMatrix4x4 transform = gameObject()->transform(); diff --git a/engine/components/graphics/beamrenderer/beamrenderercomponent.cpp b/engine/components/graphics/beamrenderer/beamrenderercomponent.cpp index 6289cc7..d6b90fc 100644 --- a/engine/components/graphics/beamrenderer/beamrenderercomponent.cpp +++ b/engine/components/graphics/beamrenderer/beamrenderercomponent.cpp @@ -122,10 +122,8 @@ void BeamRendererComponent::start() { } -void BeamRendererComponent::draw( int timeLapse ) +void BeamRendererComponent::draw( int /* timeLapse */ ) { - Q_UNUSED( timeLapse ) - QMatrix4x4 transform = gameObject()->transform(); transform.translate(0, 0, 0.01f); transform.scale( d->size.width() / 2, d->size.width() / 2 ); diff --git a/engine/components/graphics/cameracontroller/cameracontrollercomponent.cpp b/engine/components/graphics/cameracontroller/cameracontrollercomponent.cpp index 2476875..2ef48f6 100644 --- a/engine/components/graphics/cameracontroller/cameracontrollercomponent.cpp +++ b/engine/components/graphics/cameracontroller/cameracontrollercomponent.cpp @@ -119,10 +119,8 @@ void CameraControllerComponent::start() { } -void CameraControllerComponent::draw( int timeLapse ) +void CameraControllerComponent::draw( int /* timeLapse */ ) { - Q_UNUSED( timeLapse ) - if( d->camera ) d->camera->setViewMatrix( gameObject()->transform().inverted() ); } diff --git a/engine/components/graphics/discrenderer/discrenderercomponent.cpp b/engine/components/graphics/discrenderer/discrenderercomponent.cpp index c0a3f36..1fd13f9 100644 --- a/engine/components/graphics/discrenderer/discrenderercomponent.cpp +++ b/engine/components/graphics/discrenderer/discrenderercomponent.cpp @@ -102,10 +102,8 @@ void DiscRendererComponent::start() { } -void DiscRendererComponent::draw( int timeLapse ) +void DiscRendererComponent::draw( int /* timeLapse */ ) { - Q_UNUSED( timeLapse ) - if( d->item ) { d->item->setMatrix( gameObject()->transform() ); diff --git a/engine/components/graphics/discsectionrenderer/discsectionrenderercomponent.cpp b/engine/components/graphics/discsectionrenderer/discsectionrenderercomponent.cpp index faa8afa..2575206 100644 --- a/engine/components/graphics/discsectionrenderer/discsectionrenderercomponent.cpp +++ b/engine/components/graphics/discsectionrenderer/discsectionrenderercomponent.cpp @@ -110,10 +110,8 @@ void DiscSectionRendererComponent::start() { } -void DiscSectionRendererComponent::draw( int timeLapse ) +void DiscSectionRendererComponent::draw( int /* timeLapse */ ) { - Q_UNUSED( timeLapse ) - if( d->item ) { d->item->setMatrix( gameObject()->transform() ); diff --git a/engine/components/graphics/spriterenderer/spriterenderercomponent.cpp b/engine/components/graphics/spriterenderer/spriterenderercomponent.cpp index 1401584..4dc2745 100644 --- a/engine/components/graphics/spriterenderer/spriterenderercomponent.cpp +++ b/engine/components/graphics/spriterenderer/spriterenderercomponent.cpp @@ -117,10 +117,8 @@ void SpriteRendererComponent::start() { } -void SpriteRendererComponent::draw( int timeLapse ) +void SpriteRendererComponent::draw( int /* timeLapse */ ) { - Q_UNUSED( timeLapse ) - if( d->item ) { QMatrix4x4 transform = gameObject()->transform(); diff --git a/engine/components/graphics/uimanager/uimanagercomponent.cpp b/engine/components/graphics/uimanager/uimanagercomponent.cpp index 94b351a..21edf65 100644 --- a/engine/components/graphics/uimanager/uimanagercomponent.cpp +++ b/engine/components/graphics/uimanager/uimanagercomponent.cpp @@ -282,10 +282,8 @@ void UiManagerComponent::start() } -void UiManagerComponent::draw( int timeLapse ) +void UiManagerComponent::draw( int /* timeLapse */ ) { - Q_UNUSED( timeLapse ) - if( !d->scene || !d->ui || !d->ui->qmlItem() ) { return; diff --git a/engine/components/other/spherecollision/spherecollisioncomponent.cpp b/engine/components/other/spherecollision/spherecollisioncomponent.cpp index 025c495..cdb8754 100644 --- a/engine/components/other/spherecollision/spherecollisioncomponent.cpp +++ b/engine/components/other/spherecollision/spherecollisioncomponent.cpp @@ -77,10 +77,8 @@ void SphereCollisionComponent::start() } } -void SphereCollisionComponent::update( int elapsedMilliseconds ) +void SphereCollisionComponent::update( int /* elapsedMilliseconds */ ) { - Q_UNUSED( elapsedMilliseconds ) - d->collides = 0; //Our position diff --git a/engine/components/scripting/scriptingcomponentprivate.cpp b/engine/components/scripting/scriptingcomponentprivate.cpp index 64146a3..a52c0ce 100644 --- a/engine/components/scripting/scriptingcomponentprivate.cpp +++ b/engine/components/scripting/scriptingcomponentprivate.cpp @@ -67,9 +67,8 @@ void ScriptingComponent::ScriptingComponentPrivate::updateScriptObject() cleanupFunction = scriptObject.property( "cleanup" ); } -QScriptValue ScriptingComponent::ScriptingComponentPrivate::debug(QScriptContext* context, QScriptEngine* engine) +QScriptValue ScriptingComponent::ScriptingComponentPrivate::debug(QScriptContext* context, QScriptEngine* /* engine */) { - Q_UNUSED(engine) QScriptValue callee = context->callee(); if( context->argumentCount() == 1 ) { diff --git a/engine/components/scripting/scriptingengine.cpp b/engine/components/scripting/scriptingengine.cpp index 3b4e192..d5d44c1 100644 --- a/engine/components/scripting/scriptingengine.cpp +++ b/engine/components/scripting/scriptingengine.cpp @@ -23,8 +23,8 @@ #include "scriptingasset.h" #include "scriptingcomponent.h" -#include "core/gluonobjectfactory.h" -#include "core/scriptengine.h" +#include +#include #include // #include @@ -82,10 +82,9 @@ using namespace GluonEngine; GLUON_DEFINE_SINGLETON(ScriptingEngine) -ScriptingEngine::ScriptingEngine( QObject* parent ) +ScriptingEngine::ScriptingEngine( QObject* /* parent */ ) : d( new Private() ) { - Q_UNUSED( parent ) } ScriptingEngine::~ScriptingEngine() @@ -97,9 +96,9 @@ QScriptSyntaxCheckResult ScriptingEngine::registerAsset( const ScriptingAsset* asset ) { DEBUG_BLOCK - - - + + + // Own QScriptSyntaxCheckResult instances and set the values?! // Dumb... diff --git a/engine/components/scripting/scriptingengine.h b/engine/components/scripting/scriptingengine.h index f7a036b..a21dd37 100644 --- a/engine/components/scripting/scriptingengine.h +++ b/engine/components/scripting/scriptingengine.h @@ -22,10 +22,10 @@ #include "gluon_engine_export.h" -#include "core/singleton.h" +#include -#include -#include +#include +#include namespace GluonEngine { diff --git a/engine/game.cpp b/engine/game.cpp index 2435305..0efe9dc 100644 --- a/engine/game.cpp +++ b/engine/game.cpp @@ -24,13 +24,13 @@ #include "gameobject.h" #include "gameproject.h" -#include "core/debughelper.h" +#include #include #include #include #include -#include +#include using namespace GluonEngine; @@ -53,12 +53,10 @@ class I : public QThread } }; -Game::Game( QObject* parent ) +Game::Game( QObject* /* parent */ ) + : d( new GamePrivate ) { - Q_UNUSED( parent ) - d = new GamePrivate; - - qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); + qsrand(QTime(0, 0, 0).secsTo(QTime::currentTime())); } Game::~Game() diff --git a/engine/gameobject.cpp b/engine/gameobject.cpp index 125567f..90f8e36 100644 --- a/engine/gameobject.cpp +++ b/engine/gameobject.cpp @@ -21,10 +21,11 @@ #include "gameobject.h" #include "gameobjectprivate.h" #include "component.h" -#include "core/debughelper.h" #include "game.h" #include "scene.h" +#include + REGISTER_OBJECTTYPE( GluonEngine, GameObject ) using namespace GluonEngine; diff --git a/engine/gameprivate.cpp b/engine/gameprivate.cpp index 8df619d..70f8bc5 100644 --- a/engine/gameprivate.cpp +++ b/engine/gameprivate.cpp @@ -21,7 +21,7 @@ #include "gameprivate.h" #include "scene.h" -#include "core/debughelper.h" +#include using namespace GluonEngine; diff --git a/engine/gameproject.cpp b/engine/gameproject.cpp index ea44d17..b14efee 100644 --- a/engine/gameproject.cpp +++ b/engine/gameproject.cpp @@ -24,17 +24,17 @@ #include "scene.h" #include "game.h" -#include "core/gdlhandler.h" -#include "core/scriptengine.h" -#include "core/debughelper.h" +#include +#include +#include +#include #include #include #include #include #include #include -#include REGISTER_OBJECTTYPE( GluonEngine, GameProject ) diff --git a/engine/gameprojectprivate.cpp b/engine/gameprojectprivate.cpp index ecd5217..c14e469 100644 --- a/engine/gameprojectprivate.cpp +++ b/engine/gameprojectprivate.cpp @@ -22,8 +22,8 @@ #include "savable.h" -#include "core/gluonobject.h" -#include "core/debughelper.h" +#include +#include #include diff --git a/engine/prefab.h b/engine/prefab.h index ba16838..c564adc 100644 --- a/engine/prefab.h +++ b/engine/prefab.h @@ -20,9 +20,10 @@ #ifndef GLUON_ENGINE_PREFAB_H #define GLUON_ENGINE_PREFAB_H -#include "core/gluonobject.h" #include "asset.h" +#include + namespace GluonEngine { diff --git a/engine/savable.cpp b/engine/savable.cpp index 3af226d..faa5d26 100644 --- a/engine/savable.cpp +++ b/engine/savable.cpp @@ -20,17 +20,18 @@ #include "savable.h" -#include "core/gluonobject.h" -#include "core/debughelper.h" +#include "asset.h" + +#include +#include +#include +#include #include #include #include #include #include -#include -#include -#include "asset.h" using namespace GluonEngine; diff --git a/engine/scene.cpp b/engine/scene.cpp index 2b4c980..bc46523 100644 --- a/engine/scene.cpp +++ b/engine/scene.cpp @@ -23,11 +23,12 @@ #include "sceneprivate.h" #include "filelocation.h" #include "gameproject.h" - -#include "core/gdlhandler.h" #include "game.h" -#include + #include +#include + +#include REGISTER_OBJECTTYPE( GluonEngine, Scene ) diff --git a/engine/sceneprivate.cpp b/engine/sceneprivate.cpp index 9b30102..4a3400e 100644 --- a/engine/sceneprivate.cpp +++ b/engine/sceneprivate.cpp @@ -22,8 +22,8 @@ #include "scene.h" #include "gameobject.h" -#include "core/debughelper.h" -#include "core/gdlhandler.h" +#include +#include #include #include diff --git a/graphics/materialinstance.h b/graphics/materialinstance.h index 593bde4..9fd34a6 100644 --- a/graphics/materialinstance.h +++ b/graphics/materialinstance.h @@ -20,9 +20,10 @@ #ifndef GLUONGRAPHICS_MATERIALINSTANCE_H #define GLUONGRAPHICS_MATERIALINSTANCE_H -#include "core/gluonobject.h" #include "gluon_graphics_export.h" +#include + namespace GluonGraphics { diff --git a/input/inputmanager.h b/input/inputmanager.h index ba8a852..8df655c 100644 --- a/input/inputmanager.h +++ b/input/inputmanager.h @@ -28,13 +28,12 @@ #include "joystick.h" #include "touch.h" -#include "core/singleton.h" - -#include +#include #include #include #include +#include namespace GluonInput { diff --git a/player/kde/mainwindow.cpp b/player/kde/mainwindow.cpp index 1ed5629..ebd6b65 100644 --- a/player/kde/mainwindow.cpp +++ b/player/kde/mainwindow.cpp @@ -176,9 +176,8 @@ void MainWindow::updateTitle( int msec ) setWindowTitle( d->title + QString( " (%1 FPS)" ).arg( fps ) ); } -void MainWindow::countFrames( int time ) +void MainWindow::countFrames( int /* time */ ) { - Q_UNUSED( time ) d->frameCount++; } diff --git a/player/kdeext/delegates/itemsviewdelegate.cpp b/player/kdeext/delegates/itemsviewdelegate.cpp index f14afd4..95aef7b 100644 --- a/player/kdeext/delegates/itemsviewdelegate.cpp +++ b/player/kdeext/delegates/itemsviewdelegate.cpp @@ -163,13 +163,9 @@ void ItemsViewDelegate::paint(QPainter* painter, const QStyleOptionViewItem & op painter->restore(); } -QSize ItemsViewDelegate::sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const +QSize ItemsViewDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& /* index */ ) const { - Q_UNUSED(option); - Q_UNUSED(index); - QSize size; - size.setWidth(option.fontMetrics.height() * 4); size.setHeight(qMax(option.fontMetrics.height() * 7, PreviewHeight)); // up to 6 lines of text, and two margins return size; diff --git a/player/kdeext/gamesoverlay.cpp b/player/kdeext/gamesoverlay.cpp index 7d03fe1..b8bf62d 100644 --- a/player/kdeext/gamesoverlay.cpp +++ b/player/kdeext/gamesoverlay.cpp @@ -76,9 +76,8 @@ QListView* GamesOverlay::gamesView() return m_gamesView; } -void GamesOverlay::selectionChanged( const QModelIndex & current, const QModelIndex & previous ) +void GamesOverlay::selectionChanged( const QModelIndex& current, const QModelIndex& /* previous */ ) { - Q_UNUSED( previous ) m_stackedWidget->setCurrentIndex( current.row( ) ); } diff --git a/player/kdeext/models/listmodel.cpp b/player/kdeext/models/listmodel.cpp index 3d6b0cc..76559cb 100644 --- a/player/kdeext/models/listmodel.cpp +++ b/player/kdeext/models/listmodel.cpp @@ -37,15 +37,13 @@ QVariant ListModel::data( const QModelIndex& index, int role ) const return QVariant(); } -int ListModel::columnCount( const QModelIndex& parent ) const +int ListModel::columnCount( const QModelIndex& /* parent */ ) const { - Q_UNUSED( parent ) return 1; } -int ListModel::rowCount( const QModelIndex& parent ) const +int ListModel::rowCount( const QModelIndex& /* parent */ ) const { - Q_UNUSED( parent ) return m_list.count(); } diff --git a/player/kdeext/views/achievementsview.cpp b/player/kdeext/views/achievementsview.cpp index a84066f..617b1c5 100644 --- a/player/kdeext/views/achievementsview.cpp +++ b/player/kdeext/views/achievementsview.cpp @@ -19,8 +19,6 @@ #include "achievementsview.h" -AchievementsView::AchievementsView( QWidget* parent, Qt::WindowFlags wFlags ) +AchievementsView::AchievementsView( QWidget* /* parent */, Qt::WindowFlags /* wFlags */ ) { - Q_UNUSED( parent ) - Q_UNUSED( wFlags ) } diff --git a/player/lib/models/commentsmodel.cpp b/player/lib/models/commentsmodel.cpp index 2e07595..eb101b7 100644 --- a/player/lib/models/commentsmodel.cpp +++ b/player/lib/models/commentsmodel.cpp @@ -197,9 +197,8 @@ QVariant CommentsModel::data( const QModelIndex& index, int role ) const return QVariant(); } -int CommentsModel::columnCount( const QModelIndex& parent ) const +int CommentsModel::columnCount( const QModelIndex& /* parent */ ) const { - Q_UNUSED( parent ) return 5; } diff --git a/player/plasmoid/glfboapplet.cpp b/player/plasmoid/glfboapplet.cpp index 31af90b..d56b599 100644 --- a/player/plasmoid/glfboapplet.cpp +++ b/player/plasmoid/glfboapplet.cpp @@ -165,11 +165,9 @@ void GLFBOApplet::deleteTexture( GLuint textureId ) d->dummy->deleteTexture( textureId ); } -void GLFBOApplet::paintGLInterface( QPainter* painter, - const QStyleOptionGraphicsItem* option ) +void GLFBOApplet::paintGLInterface( QPainter* /* painter */, + const QStyleOptionGraphicsItem* /* option */ ) { - Q_UNUSED( painter ) - Q_UNUSED( option ) } static inline QPainterPath headerPath( const QRectF& r, int roundness, @@ -240,9 +238,8 @@ static inline QPainterPath headerPath( const QRectF& r, int roundness, void GLFBOApplet::paintInterface( QPainter* painter, const QStyleOptionGraphicsItem* option, - const QRect& contentsRect ) + const QRect& /* contentsRect */ ) { - Q_UNUSED( contentsRect ) if( d->fbo ) { d->dummy->makeCurrent(); diff --git a/player/plasmoid/overlay.cpp b/player/plasmoid/overlay.cpp index 912fb73..535cef5 100644 --- a/player/plasmoid/overlay.cpp +++ b/player/plasmoid/overlay.cpp @@ -59,10 +59,8 @@ void Overlay::wheelEvent( QGraphicsSceneWheelEvent* event ) QGraphicsItem::wheelEvent( event ); } -void Overlay::paint( QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget ) +void Overlay::paint( QPainter* painter, const QStyleOptionGraphicsItem* /* option */, QWidget* /* widget */ ) { - Q_UNUSED( option ) - Q_UNUSED( widget ) m_background->paintFrame( painter ); } diff --git a/player/plasmoid/plasmaapplet.cpp b/player/plasmoid/plasmaapplet.cpp index 526049b..04867e6 100644 --- a/player/plasmoid/plasmaapplet.cpp +++ b/player/plasmoid/plasmaapplet.cpp @@ -182,11 +182,8 @@ void PlasmaApplet::render() Engine::instance()->render(); } -void PlasmaApplet::paintGLInterface( QPainter* painter, const QStyleOptionGraphicsItem* option ) +void PlasmaApplet::paintGLInterface( QPainter* /* painter */, const QStyleOptionGraphicsItem* /* option */ ) { - Q_UNUSED( painter ) - Q_UNUSED( option ) - glScissor( 0, 0, 400, 400 ); glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); glLoadIdentity(); diff --git a/player/plasmoid/views/achievementsview.cpp b/player/plasmoid/views/achievementsview.cpp index 651cb4d..ef3ec1a 100644 --- a/player/plasmoid/views/achievementsview.cpp +++ b/player/plasmoid/views/achievementsview.cpp @@ -19,8 +19,6 @@ #include "achievementsview.h" -AchievementsView::AchievementsView( QGraphicsItem* parent, Qt::WindowFlags wFlags ) +AchievementsView::AchievementsView( QGraphicsItem* /* parent */, Qt::WindowFlags /* wFlags */ ) { - Q_UNUSED( parent ) - Q_UNUSED( wFlags ) } diff --git a/player/plasmoid/views/gamesviewitem.cpp b/player/plasmoid/views/gamesviewitem.cpp index 9324b4f..612dd4e 100644 --- a/player/plasmoid/views/gamesviewitem.cpp +++ b/player/plasmoid/views/gamesviewitem.cpp @@ -92,9 +92,8 @@ void GamesViewItem::playGameActivated() emit gameToPlaySelected( m_index ); } -void GamesViewItem::mousePressEvent( QGraphicsSceneMouseEvent* event ) +void GamesViewItem::mousePressEvent( QGraphicsSceneMouseEvent* /* event */ ) { - Q_UNUSED( event ) emit gameSelected( m_index ); } diff --git a/player/qt/mainwindow.cpp b/player/qt/mainwindow.cpp index 21c2197..d96705b 100644 --- a/player/qt/mainwindow.cpp +++ b/player/qt/mainwindow.cpp @@ -108,10 +108,8 @@ void MainWindow::activated( QModelIndex index ) } } -void MainWindow::openClicked( bool toggled ) +void MainWindow::openClicked( bool /* toggled */ ) { - Q_UNUSED( toggled ) - QString fileName = QFileDialog::getOpenFileName( this, tr( "Select a Project" ), QString(), QString( "*%1|Gluon Project Files" ).arg( GluonEngine::projectFilename ) ); if( !fileName.isEmpty() ) openProject( fileName ); @@ -175,9 +173,8 @@ void MainWindow::updateTitle( int msec ) setWindowTitle( d->title + QString( " (%1 FPS)" ).arg( fps ) ); } -void MainWindow::countFrames( int time ) +void MainWindow::countFrames( int /* time */ ) { - Q_UNUSED( time ) d->frameCount++; } diff --git a/player/qtext/actionsdialog.cpp b/player/qtext/actionsdialog.cpp index 188ea5b..2d473cf 100644 --- a/player/qtext/actionsdialog.cpp +++ b/player/qtext/actionsdialog.cpp @@ -48,10 +48,8 @@ void ActionsDialog::changeEvent( QEvent* e ) } void ActionsDialog::recordAction( int curr_row, int curr_col, - int prev_row, int prev_col ) + int /* prev_row */, int /* prev_col */ ) { - Q_UNUSED( prev_row ) - Q_UNUSED( prev_col ) oldAccelText = TableWidgetActions->item( curr_row, curr_col )->text(); } diff --git a/player/qtext/mainwindow.cpp b/player/qtext/mainwindow.cpp index 8e72f98..2f63781 100644 --- a/player/qtext/mainwindow.cpp +++ b/player/qtext/mainwindow.cpp @@ -176,10 +176,8 @@ void MainWindow::activated( QModelIndex index ) } } -void MainWindow::openClicked( bool toggled ) +void MainWindow::openClicked( bool /* toggled */ ) { - Q_UNUSED( toggled ) - QString fileName = QFileDialog::getOpenFileName( this, tr( "Select a Project" ), QString(), QString( "*%1|Gluon Project Files" ).arg(GluonEngine::projectFilename) ); if( !fileName.isEmpty() ) openProject( fileName ); @@ -240,9 +238,8 @@ void MainWindow::updateTitle( int msec ) setWindowTitle( d->title + QString( " (%1 FPS)" ).arg( fps ) ); } -void MainWindow::countFrames( int time ) +void MainWindow::countFrames( int /* time */ ) { - Q_UNUSED( time ) d->frameCount++; } diff --git a/player/qtext/views/achievementsview.cpp b/player/qtext/views/achievementsview.cpp index a84066f..617b1c5 100644 --- a/player/qtext/views/achievementsview.cpp +++ b/player/qtext/views/achievementsview.cpp @@ -19,8 +19,6 @@ #include "achievementsview.h" -AchievementsView::AchievementsView( QWidget* parent, Qt::WindowFlags wFlags ) +AchievementsView::AchievementsView( QWidget* /* parent */, Qt::WindowFlags /* wFlags */ ) { - Q_UNUSED( parent ) - Q_UNUSED( wFlags ) } diff --git a/player/qtext/views/gamesviewitem.cpp b/player/qtext/views/gamesviewitem.cpp index 5467200..ee284bf 100644 --- a/player/qtext/views/gamesviewitem.cpp +++ b/player/qtext/views/gamesviewitem.cpp @@ -86,9 +86,8 @@ void GamesViewItem::playGameActivated() emit gameToPlaySelected( m_index ); } -void GamesViewItem::mousePressEvent( QMouseEvent* event ) +void GamesViewItem::mousePressEvent( QMouseEvent* /* event */ ) { - Q_UNUSED( event ) emit gameSelected( m_index ); }