+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>
* FormBase.C: no longer transient dialogs, XMapWindow()
2001-02-23 John Levon <moz@compsoc.man.ac.uk>
* FormBase.C: no longer transient dialogs, XMapWindow()
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())
return local_formats.Get(i-1).name();
else {
if (i > 0 && i <= local_formats.size())
return local_formats.Get(i-1).name();
else {
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())
return local_formats.Get(i-1).name();
else {
if (i > 0 && i <= local_formats.size())
return local_formats.Get(i-1).name();
else {