use size_type rather than int

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1613 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2001-02-23 17:20:28 +00:00
parent 2e279fe9c7
commit ef88cb6ff0
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-02-23 Angus Leeming <a.leeming@ic.ac.uk>
* FormPreferences(GetFrom, GetTo): use size_type rather than int.
2001-02-23 John Levon <moz@compsoc.man.ac.uk> 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
* FormBase.C: no longer transient dialogs, XMapWindow() * FormBase.C: no longer transient dialogs, XMapWindow()

View File

@ -1184,7 +1184,9 @@ bool FormPreferences::Converters::Input()
string const FormPreferences::Converters::GetFrom() const string const FormPreferences::Converters::GetFrom() const
{ {
int const i = fl_get_choice(dialog_->choice_from); Formats::FormatList::size_type const i =
fl_get_choice(dialog_->choice_from);
if (i > 0 && i <= local_formats.size()) if (i > 0 && i <= local_formats.size())
return local_formats.Get(i-1).name(); return local_formats.Get(i-1).name();
else { else {
@ -1197,7 +1199,9 @@ string const FormPreferences::Converters::GetFrom() const
string const FormPreferences::Converters::GetTo() const string const FormPreferences::Converters::GetTo() const
{ {
int const i = fl_get_choice(dialog_->choice_to); Formats::FormatList::size_type const i =
fl_get_choice(dialog_->choice_from);
if (i > 0 && i <= local_formats.size()) if (i > 0 && i <= local_formats.size())
return local_formats.Get(i-1).name(); return local_formats.Get(i-1).name();
else { else {