]> git.lyx.org Git - lyx.git/blobdiff - src/MetricsInfo.h
Remove problematic accelerator (#9495)
[lyx.git] / src / MetricsInfo.h
index 020b25f87428baa84e912aa915c518beb082177f..88dd39fd7d7e5958b5eba94972d9aa3adf7c7c53 100644 (file)
@@ -18,7 +18,6 @@
 #include "FontInfo.h"
 
 #include "support/strfwd.h"
-#include "support/types.h"
 
 #include <string>
 
@@ -127,14 +126,16 @@ public:
 class TextMetricsInfo {};
 
 
-/// Generic base for temporarily changing things.
-/// The original state gets restored when the Changer is destructed.
+/// Generic base for temporarily changing things. The derived class is
+/// responsible for restoring the original state when the Changer is
+/// destructed.
 template <class Struct, class Temp = Struct>
 class Changer {
-public:
-       ///
-       Changer(Struct & orig) : orig_(orig) {}
 protected:
+       ///
+       Changer(Struct & orig, Temp const & save) : orig_(orig), save_(save) {}
+       ///
+       Changer(Struct & orig) : orig_(orig), save_(orig) {}
        ///
        Struct & orig_;
        ///