]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/RadioButtonGroup.C
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / RadioButtonGroup.C
index 863aafff1f964496570d85122199cb8e69ddd5de..21fdb673b0b2fbd1606aba8014befb5820578718 100644 (file)
@@ -1,16 +1,19 @@
-// -*- C++ -*-
 /* This file is part of
  * =================================================
  * 
  *          LyX, The Document Processor
  *          Copyright 1995 Matthias Ettrich.
- *          Copyright 1995-2000 The LyX Team.
+ *          Copyright 1995-2001 The LyX Team.
  *
  *          This file Copyright 2000 Baruch Even
  * ================================================= */
 
 #include <config.h> 
 
+#include <functional>
+#include <algorithm>
+#include <iterator>
+
 #ifdef __GNUG__
 #pragma implementation
 #endif 
@@ -19,9 +22,6 @@
 
 #include "debug.h" // for lyxerr
 
-#include <functional>
-#include <algorithm>
-#include <iterator>
 using std::find_if;
 using std::bind2nd;
 using std::endl;
@@ -72,7 +72,7 @@ void RadioButtonGroup::setButton(int value)
                << endl;
        }
        else {
-               fl_set_button((*it).first, 1);
+               fl_set_button(it->first, 1);
        }
 
 }
@@ -94,7 +94,7 @@ int RadioButtonGroup::getButton()
 
        // If such a button was found, return its value.
        if (it != map.end()) {
-               return (*it).second;
+               return it->second;
        }
 
        lyxerr << "BUG: No radio button found to be active." << endl;