]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/RadioButtonGroup.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / RadioButtonGroup.C
index d859db950eb412f7164d13fcfaf6c7922eb0d56b..cdaa0906aae2988ea164862c385cf8535da4af10 100644 (file)
 
 #include "debug.h"
 
-#include "support/LAssert.h"
 #include "support/lyxfunctional.h"
 
 #include "lyx_forms.h"
 
-using namespace lyx::support;
+#include <boost/assert.hpp>
 
 using std::endl;
-using std::find_if;
 
 
 void RadioButtonGroup::init(FL_OBJECT * ob, size_type value)
 {
        // Object must be a ROUND3DBUTTON (let all radio buttons look the same)
        // and of type RADIO_BUTTON (otherwise it ain't work).
-       Assert(ob && ob->objclass == FL_ROUND3DBUTTON
+       BOOST_ASSERT(ob && ob->objclass == FL_ROUND3DBUTTON
                        && ob->type == FL_RADIO_BUTTON);
 
        map.push_back(ButtonValuePair(ob, value));
@@ -74,8 +72,8 @@ void RadioButtonGroup::set(FL_OBJECT * ob) const
 }
 
 
-template < typename T >
-struct is_set_button {
+template <typename T>
+struct is_set_button : public std::unary_function<T, bool> {
        bool operator() (T const & item) const
        {
                return fl_get_button((item).first);