]> git.lyx.org Git - lyx.git/blob - src/support/path.C
Create a grfx::Loader class and so move large chunks of code out of
[lyx.git] / src / support / path.C
1 /**
2  * \file path.C
3  * Copyright 1995-2002 the LyX Team
4  * Read the file COPYING
5  *
6  * \author unknown
7  */
8
9 #include <config.h>
10
11 #ifdef __GNUG__
12 #pragma implementation
13 #endif
14
15 #include "path.h"
16
17 int Path::pop()
18 {
19         if (popped_) {
20                 // should throw an exception
21                 // throw logical_error();
22                 return 0;
23         }
24  
25         if (lyx::chdir(pushedDir_)) {
26                 // should throw an exception
27                 // throw DirChangeError();
28         }
29         popped_ = true;
30  
31         return 0;
32 }