]> git.lyx.org Git - lyx.git/blob - src/support/path.C
dont use pragma impementation and interface anymore
[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 #include "path.h"
14
15 int Path::pop()
16 {
17         if (popped_) {
18                 // should throw an exception
19                 // throw logical_error();
20                 return 0;
21         }
22
23         if (lyx::chdir(pushedDir_)) {
24                 // should throw an exception
25                 // throw DirChangeError();
26         }
27         popped_ = true;
28
29         return 0;
30 }