]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormColorpicker.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / FormColorpicker.C
index a1bcf4aafd90b64b9caf5a9b40244ca240e4d45a..7a23f9f01ab059a4403b52d548d22ddf6eef094f 100644 (file)
 #include "lyxrc.h"
 
 #include "support/filetools.h" //  LibFileSearch
-#include "support/LAssert.h"
 #include "support/tostr.h"
 
 #include "lyx_forms.h"
 
+using std::string;
+
+namespace lyx {
+namespace frontend {
 
 namespace {
 
@@ -282,7 +285,7 @@ void FormColorpicker::prepare_to_show()
 
        //  assign an icon to the form
        string const iconname =
-               lyx::support::LibFileSearch("images", "lyx", "xpm");
+               support::LibFileSearch("images", "lyx", "xpm");
 
        if (!iconname.empty()) {
                unsigned int w, h;
@@ -346,7 +349,7 @@ extern "C" {
 
 void C_FormColorpickerInputCB(FL_OBJECT * ob, long d)
 {
-       lyx::support::Assert(ob && ob->form && ob->form->u_vdata);
+       BOOST_ASSERT(ob && ob->form && ob->form->u_vdata);
        FormColorpicker * ptr =
                static_cast<FormColorpicker *>(ob->form->u_vdata);
        ptr->input(ob, d);
@@ -356,10 +359,13 @@ void C_FormColorpickerInputCB(FL_OBJECT * ob, long d)
 static int C_WMHideCB(FL_FORM * form, void *)
 {
        // Close the dialog cleanly, even if the WM is used to do so.
-       lyx::support::Assert(form && form->u_vdata);
+       BOOST_ASSERT(form && form->u_vdata);
        FormColorpicker * ptr = static_cast<FormColorpicker *>(form->u_vdata);
        ptr->input(0, 0);
        return FL_CANCEL;
 }
 
 } // extern "C"
+
+} // namespace frontend
+} // namespace lyx