]> git.lyx.org Git - lyx.git/commitdiff
use size_type rather than int
authorAngus Leeming <leeming@lyx.org>
Fri, 23 Feb 2001 17:20:28 +0000 (17:20 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 23 Feb 2001 17:20:28 +0000 (17:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1613 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormPreferences.C

index c68efe4e1c1388b7e693d2bc136de45d2bcea380..9b6458d73e1556ee259a1f536eeef636ab6250f8 100644 (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>
 
        * FormBase.C: no longer transient dialogs, XMapWindow()
index e03fed575347184260f7e18f234c44daa438e5df..ef41f316ca4d4c4525081058f918daf8a10a7357 100644 (file)
@@ -1184,7 +1184,9 @@ bool FormPreferences::Converters::Input()
 
 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 {
@@ -1197,7 +1199,9 @@ string const FormPreferences::Converters::GetFrom() 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 {