minor - -Wpedantic and some -Wunused-params

wilder-5.14
Allen Winter 10 years ago
parent 528a51fa59
commit 12d06d3d06
  1. 3
      components/shellprivate/widgetexplorer/widgetexplorer.cpp
  2. 4
      dataengines/weather/weatherengine.cpp
  3. 2
      ksmserver/server.h
  4. 2
      libtaskmanager/taskfilterproxymodel.h
  5. 2
      wallpapers/image/backgroundlistmodel.h

@ -305,7 +305,7 @@ WidgetExplorer::WidgetExplorer(QObject *parent)
//FIXME: delay
setApplication();
d->initRunningApplets();
d->filterItemModel.setSortCaseSensitivity(Qt::CaseInsensitive);
d->filterItemModel.setDynamicSortFilter(true);
d->filterItemModel.setSourceModel(&d->itemModel);
@ -416,6 +416,7 @@ void WidgetExplorer::immutabilityChanged(Plasma::Types::ImmutabilityType type)
void WidgetExplorer::downloadWidgets(const QString &type)
{
Q_UNUSED(type);
if (!d->newStuffDialog) {
d->newStuffDialog = new KNS3::DownloadDialog( QLatin1String("plasmoids.knsrc") );
d->newStuffDialog.data()->setWindowTitle(i18n("Download New Plasma Widgets"));

@ -214,8 +214,9 @@ void WeatherEngine::startReconnect()
}
}
void WeatherEngine::forceUpdate(IonInterface *i, const QString &source)
void WeatherEngine::forceUpdate(IonInterface *ion, const QString &source)
{
Q_UNUSED(ion);
Plasma::DataContainer *container = containerForSource(source);
if (container) {
qDebug() << "immediate update of" << source;
@ -251,4 +252,3 @@ QString WeatherEngine::ionNameForSource(const QString& source) const
K_EXPORT_PLASMA_DATAENGINE_WITH_JSON(weather, WeatherEngine, "plasma-dataengine-weather.json")
#include "weatherengine.moc"

@ -73,7 +73,7 @@ public:
ImmediateLockScreen = 1 << 1,
NoLockScreen = 1 << 2
};
Q_DECLARE_FLAGS(InitFlags, InitFlag);
Q_DECLARE_FLAGS(InitFlags, InitFlag)
KSMServer( const QString& windowManager, InitFlags flags );
~KSMServer() override;

@ -55,7 +55,7 @@ class TASKMANAGER_EXPORT TaskFilterProxyModel : public QSortFilterProxyModel, pu
public:
explicit TaskFilterProxyModel(QObject *parent = 0);
virtual ~TaskFilterProxyModel();;
virtual ~TaskFilterProxyModel();
void setSourceModel(QAbstractItemModel *sourceModel) override;

@ -57,7 +57,7 @@ class ImageSizeFinder : public QObject, public QRunnable
class BackgroundListModel : public QAbstractListModel
{
Q_OBJECT
Q_PROPERTY(int count READ count NOTIFY countChanged);
Q_PROPERTY(int count READ count NOTIFY countChanged)
public:
enum {

Loading…
Cancel
Save