From af5d8eabe7c558355add59335f3bf6bddf5fcc3b Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Sun, 7 Jan 2007 23:06:54 +0000 Subject: [PATCH] Resolve compiler warning unused parameter nr in src/frontends/qt4/QPrefsDialog.C git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16591 a592a061-630c-0410-9148-cb99ea01b6c8 --- Status.15x | 5 +++-- src/frontends/qt4/QPrefsDialog.C | 6 +++--- src/frontends/qt4/QPrefsDialog.h | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Status.15x b/Status.15x index 1e4c71755a..f3da962966 100644 --- a/Status.15x +++ b/Status.15x @@ -24,8 +24,6 @@ GENERAL * Resolve compiler warnings - especially this one: src/frontends/qt4/QPrefsDialog.C:944: warning: unused parameter 'nr' - * Watch for bugzilla.lyx.org entries * Open bugs: http://tinyurl.com/y7hdzc @@ -669,3 +667,6 @@ e C:\cygwin\home\ms\lyx-trunk\src\support\filename.C:48 FIXED (2007-01-07 JSpitzm). +* Resolve compiler warnings + src/frontends/qt4/QPrefsDialog.C:944: warning: unused parameter 'nr' + FIXED (2007-01-07 Bo) diff --git a/src/frontends/qt4/QPrefsDialog.C b/src/frontends/qt4/QPrefsDialog.C index 7b64aee28b..0dafd89134 100644 --- a/src/frontends/qt4/QPrefsDialog.C +++ b/src/frontends/qt4/QPrefsDialog.C @@ -864,7 +864,7 @@ PrefConverters::PrefConverters(QPrefs * form, QWidget * parent) connect(converterModifyPB, SIGNAL(clicked()), this, SLOT(update_converter())); connect(convertersLW, SIGNAL(currentRowChanged(int)), - this, SLOT(switch_converter(int))); + this, SLOT(switch_converter())); connect(converterFromCO, SIGNAL(activated(const QString&)), this, SLOT(converter_changed())); connect(converterToCO, SIGNAL(activated(const QString&)), @@ -910,7 +910,7 @@ void PrefConverters::updateGui() } // currentRowChanged(int) is also triggered when updating the listwidget - // block signals to avoid unnecessary calls to switch_converter(int nr) + // block signals to avoid unnecessary calls to switch_converter() convertersLW->blockSignals(true); convertersLW->clear(); @@ -941,7 +941,7 @@ void PrefConverters::updateGui() } -void PrefConverters::switch_converter(int nr) +void PrefConverters::switch_converter() { int const cnr = convertersLW->currentItem()->type(); Converter const & c(form_->converters().get(cnr)); diff --git a/src/frontends/qt4/QPrefsDialog.h b/src/frontends/qt4/QPrefsDialog.h index 532a4da0c4..bf6d3b5fce 100644 --- a/src/frontends/qt4/QPrefsDialog.h +++ b/src/frontends/qt4/QPrefsDialog.h @@ -254,7 +254,7 @@ public Q_SLOTS: private Q_SLOTS: void update_converter(); - void switch_converter(int); + void switch_converter(); void converter_changed(); void remove_converter();