]> git.lyx.org Git - lyx.git/blob - src/support/Changer.h
Remove updateInfo() calls in favor of doing the relevant work
[lyx.git] / src / support / Changer.h
1 // -*- C++ -*-
2 /**
3  * \file Changer.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Guillaume Munch
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LYX_CHANGER_H
13 #define LYX_CHANGER_H
14
15 #include "support/unique_ptr.h"
16
17
18 namespace lyx {
19
20 // Forward declaration for support/RefChanger.h
21 struct Revertible {
22         virtual ~Revertible() {}
23         virtual void revert() {}
24         virtual void keep() {}
25 };
26
27 //for gcc 4.6
28 //using Changer = unique_ptr<Revertible>;
29 typedef unique_ptr<Revertible> Changer;
30
31
32 } // namespace lyx
33
34 #endif //LYX_CHANGER_H