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
This commit is contained in:
Bo Peng 2007-01-07 23:06:54 +00:00
parent b7f4f88f2f
commit af5d8eabe7
3 changed files with 7 additions and 6 deletions

View File

@ -24,8 +24,6 @@ GENERAL
* Resolve compiler warnings * Resolve compiler warnings
especially this one: src/frontends/qt4/QPrefsDialog.C:944: warning: unused parameter 'nr'
* Watch for bugzilla.lyx.org entries * Watch for bugzilla.lyx.org entries
* Open bugs: http://tinyurl.com/y7hdzc * 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). FIXED (2007-01-07 JSpitzm).
* Resolve compiler warnings
src/frontends/qt4/QPrefsDialog.C:944: warning: unused parameter 'nr'
FIXED (2007-01-07 Bo)

View File

@ -864,7 +864,7 @@ PrefConverters::PrefConverters(QPrefs * form, QWidget * parent)
connect(converterModifyPB, SIGNAL(clicked()), connect(converterModifyPB, SIGNAL(clicked()),
this, SLOT(update_converter())); this, SLOT(update_converter()));
connect(convertersLW, SIGNAL(currentRowChanged(int)), connect(convertersLW, SIGNAL(currentRowChanged(int)),
this, SLOT(switch_converter(int))); this, SLOT(switch_converter()));
connect(converterFromCO, SIGNAL(activated(const QString&)), connect(converterFromCO, SIGNAL(activated(const QString&)),
this, SLOT(converter_changed())); this, SLOT(converter_changed()));
connect(converterToCO, SIGNAL(activated(const QString&)), connect(converterToCO, SIGNAL(activated(const QString&)),
@ -910,7 +910,7 @@ void PrefConverters::updateGui()
} }
// currentRowChanged(int) is also triggered when updating the listwidget // 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->blockSignals(true);
convertersLW->clear(); 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(); int const cnr = convertersLW->currentItem()->type();
Converter const & c(form_->converters().get(cnr)); Converter const & c(form_->converters().get(cnr));

View File

@ -254,7 +254,7 @@ public Q_SLOTS:
private Q_SLOTS: private Q_SLOTS:
void update_converter(); void update_converter();
void switch_converter(int); void switch_converter();
void converter_changed(); void converter_changed();
void remove_converter(); void remove_converter();