]> git.lyx.org Git - lyx.git/blobdiff - src/support/Path.h
add onoff support for "inset-modify changetype xxx" in include inset
[lyx.git] / src / support / Path.h
index 31c63f686b4057a8e981c6aeb169110f638f57a9..26b179549777381a799af06ad68db69c82dbb4e6 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -25,7 +25,8 @@ namespace support {
  * change to a directory as the cwd, for example :
  *
  * if (blah) {
- *     Path p("/tmp/blah");
+ *     FileName pp("/tmp/blah");
+ *     PathChanger p(pp);
  *     ...
  * }
  *
@@ -53,14 +54,10 @@ private:
 };
 
 // To avoid the wrong usage:
-// Path("/tmp");   // wrong
-// Path p("/tmp");  // right
+// PathChanger("/tmp");   // wrong
+// PathChanger p("/tmp");  // right
 // we add this macro:
-///
-// With boost 1.34 this is not usable anymore
-//#ifndef PATH_C
-//#define Path(x) unnamed_Path;
-//#endif
+#define PathChanger(x) unnamed_PathChanger;
 // Tip gotten from Bobby Schmidt's column in C/C++ Users Journal
 
 } // namespace support