]> git.lyx.org Git - lyx.git/blob - src/support/path.C
another safety belt
[lyx.git] / src / support / path.C
1 /**
2  * \file path.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "path.h"
18
19 int Path::pop()
20 {
21         if (popped_) {
22                 // should throw an exception
23                 // throw logical_error();
24                 return 0;
25         }
26
27         if (lyx::chdir(pushedDir_)) {
28                 // should throw an exception
29                 // throw DirChangeError();
30         }
31         popped_ = true;
32
33         return 0;
34 }