fix various warnings of unused variable, arguments...

This commit is contained in:
Guilherme Brondani Torri 2015-01-20 13:29:48 +01:00
parent 200fe8ee4b
commit 9246b219c9
12 changed files with 20 additions and 7 deletions

View File

@ -264,6 +264,7 @@ void MFBfilter::createBandPassSchematic(QString &s)
void MFBfilter::createBandStopSchematic(QString &s)
{
Q_UNUSED(s);
}

View File

@ -494,6 +494,7 @@ void SallenKey::createBandPassSchematic(QString &s)
void SallenKey::createBandStopSchematic(QString &s)
{
Q_UNUSED(s);
}

View File

@ -47,6 +47,8 @@
MyWidget::MyWidget( QWidget *parent, const char *name )
: QWidget( parent/*, name */)
{
Q_UNUSED(name);
setWindowTitle("Color Codes");
// icons are handled differently on OSX

View File

@ -579,6 +579,8 @@ void QucsTranscalc::setupTranslations () {
its 'box'. */
void QucsTranscalc::createPropItem (QGridLayout * parentGrid, TransValue * val,
int box, QButtonGroup * group) {
Q_UNUSED(group);
QRadioButton * r = NULL;
QLabel * l;
QLineEdit * e;

View File

@ -627,10 +627,11 @@ void Rect3DDiagram::calcLimits()
}
// --------------------------------------------------------------
/// \todo check Right unused parameter
int Rect3DDiagram::calcAxis(Axis *Axis, int x, int y,
double xD, double phi, bool Right)
{
Q_UNUSED(Right);
double GridStep, corr, yD, stepD, GridNum, Expo;
double xstepD, ystepD;
@ -719,10 +720,11 @@ int Rect3DDiagram::calcAxis(Axis *Axis, int x, int y,
}
// --------------------------------------------------------------
/// \todo check Right unused parameter
void Rect3DDiagram::createAxis(Axis *Axis, bool Right,
int x1_, int y1_, int x2_, int y2_)
{
Q_UNUSED(Right);
DataX *pD;
double phi, cos_phi, sin_phi;
int x, y, z, w, valid, Index = 0;

View File

@ -316,6 +316,8 @@ void LoadDialog::slotChangeIcon()
bool LoadDialog::eventFilter(QObject *obj, QEvent *event)
{
Q_UNUSED(obj);
if (event->type() == QEvent::KeyPress) {
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
// qDebug() << "type" << keyEvent->key() << fileView->count();

View File

@ -589,7 +589,7 @@ void QucsSettingsDialog::slotApply()
changed = true;
}
saveApplSettings(App); // also sets the small and large font
saveApplSettings(); // also sets the small and large font
if(changed)
{

View File

@ -313,9 +313,10 @@ void SimMessage::slotReadSpiceNetlist()
}
// ------------------------------------------------------------------------
/// \todo check 'int status' unused parameter ?
void SimMessage::slotFinishSpiceNetlist(int status )
{
Q_UNUSED(status);
if(makeSubcircuit)
Stream << ".Def:End\n\n";

View File

@ -132,7 +132,7 @@ bool loadSettings()
// #########################################################################
// Saves the settings in the settings file.
bool saveApplSettings(QucsApp *qucs)
bool saveApplSettings()
{
QSettings settings ("qucs","qucs");

View File

@ -83,7 +83,7 @@ extern QString lastDir; // to remember last directory for several dialogs
extern QStringList qucsPathList;
bool loadSettings();
bool saveApplSettings(QucsApp*);
bool saveApplSettings();
void qucsMessageOutput(QtMsgType type, const char *msg);
#endif // ifndef QUCS_MAIN_H

View File

@ -175,6 +175,8 @@ void OctaveWindow::slotSendCommand()
bool OctaveWindow::eventFilter(QObject *obj, QEvent *event) {
Q_UNUSED(obj);
if (event->type() == QEvent::KeyPress) {
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
if (keyEvent->key() == Qt::Key_PageUp) {

View File

@ -2160,7 +2160,7 @@ void QucsApp::closeEvent(QCloseEvent* Event)
QucsSettings.y=pos().y();
QucsSettings.dx=size().width();
QucsSettings.dy=size().height();
saveApplSettings(this);
saveApplSettings();
if(closeAllFiles()) {
emit signalKillEmAll(); // kill all subprocesses