]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/xformsImage.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / xformsImage.C
index bdb98f49cdfdc7537edc578bf38c9cfcd2bcaa15..493f5357269bd14e13f24cfa9d027a5096d8b08c 100644 (file)
@@ -20,7 +20,6 @@
 #include "graphics/GraphicsParams.h"
 
 #include "support/lstrings.h"
-#include "support/lyxfunctional.h"  // compare_memfun
 #include "support/lyxlib.h"
 
 #include "lyx_forms.h"
 # endif
 #endif
 
+#include <boost/bind.hpp>
 #include <boost/tuple/tuple.hpp>
 
+using lyx::frontend::getRGBColor;
 
 using lyx::support::float_equal;
 using lyx::support::prefixIs;
 using lyx::support::rtrim;
 
+using boost::bind;
+
+using std::equal_to;
 using std::find_if;
 using std::string;
 
@@ -103,7 +107,9 @@ Image::FormatList xformsImage::loadableFormats()
 
                Formats::const_iterator it =
                        find_if(begin, end,
-                               lyx::compare_memfun(&Format::extension, ext));
+                               bind(equal_to<string>(),
+                                    bind(&Format::extension, _1),
+                                    ext));
                if (it != end)
                        fmts.push_back(it->name());
        }