]> git.lyx.org Git - lyx.git/blobdiff - src/support/path.h
another safety belt
[lyx.git] / src / support / path.h
index 4b802cc14c947463bdd79536d5d38e5271d2dc32..bbc567ca2e60ca8508497cc74a60da1bfd6fc304 100644 (file)
@@ -1,10 +1,12 @@
 // -*- C++ -*-
 /**
  * \file path.h
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author unknown
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef PATH_H
@@ -40,7 +42,7 @@ public:
        Path(string const & path)
                : popped_(false)
        {
-               if (!path.empty()) { 
+               if (!path.empty()) {
                        pushedDir_ = lyx::getcwd();
                        if (pushedDir_.empty() || lyx::chdir(path))
                                /* FIXME: throw */;
@@ -48,13 +50,13 @@ public:
                        popped_ = true;
                }
        }
+
        /// set cwd to the previous value if needed
        ~Path()
        {
                if (!popped_) pop();
        }
+
        /// set cwd to the previous value if needed
        int pop();
 private: