]> git.lyx.org Git - lyx.git/blobdiff - src/support/chdir.C
* lyxfunctional.h: delete compare_memfun and helper classes
[lyx.git] / src / support / chdir.C
index 0ce2df4942a7dea0dc02923bcdbf8cd7d9c6b077..abc79d1605559d4227f7009c4a9a4062194a266a 100644 (file)
@@ -1,14 +1,24 @@
+/**
+ * \file chdir.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #include <config.h>
 
 #include <unistd.h>
 
 #include "support/lyxlib.h"
 
-int lyx::chdir(char const * name)
+int lyx::support::chdir(std::string const & name)
 {
 #ifndef __EMX__
-       return ::chdir(name);
+       return ::chdir(name.c_str());
 #else
-       return ::_chdir2(name);
+       return ::_chdir2(name.c_str());
 #endif
 }