Added a bunch of warning flags and fixed most of the shadowed

variables.
This commit is contained in:
codestation
2015-02-27 22:59:22 -04:30
parent ddf9b4a611
commit 60a3049391
37 changed files with 380 additions and 362 deletions

View File

@@ -19,7 +19,7 @@
#include "kdenotifier.h"
KDENotifier::KDENotifier(const QString &id, QObject *parent) :
KStatusNotifierItem(id, parent)
KDENotifier::KDENotifier(const QString &notifier_id, QObject *obj_parent) :
KStatusNotifierItem(notifier_id, obj_parent)
{
}

View File

@@ -24,8 +24,8 @@
#include <QMenu>
#endif
KDENotifierTray::KDENotifierTray(QWidget *parent)
: TrayIndicator(parent)
KDENotifierTray::KDENotifierTray(QWidget *obj_parent)
: TrayIndicator(obj_parent)
{
}

View File

@@ -31,8 +31,8 @@ extern "C" {
#define signals public
#endif
QTrayIcon::QTrayIcon(QWidget *parent)
: TrayIndicator(parent)
QTrayIcon::QTrayIcon(QWidget *obj_parent)
: TrayIndicator(obj_parent)
{
#ifdef Q_OS_LINUX
notify_init("qcma");

View File

@@ -44,7 +44,7 @@ public:
virtual void hide() = 0;
protected:
TrayIndicator(QWidget *parent = 0) : QWidget(parent) {}
TrayIndicator(QWidget *obj_parent = 0) : QWidget(obj_parent) {}
signals:
void openConfig();

View File

@@ -47,8 +47,8 @@ void quitIndicator(GtkMenu *menu, gpointer data);
#define signals public
UnityIndicator::UnityIndicator(QWidget *parent) :
TrayIndicator(parent)
UnityIndicator::UnityIndicator(QWidget *obj_parent) :
TrayIndicator(obj_parent)
{
notify_init("qcma");
}