X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FMetricsInfo.h;h=88dd39fd7d7e5958b5eba94972d9aa3adf7c7c53;hb=3bb588f4aaa810fa9cf00a93cf1bd6015cc4d8cf;hp=020b25f87428baa84e912aa915c518beb082177f;hpb=6d4709d46c750eaa31e06d0da18a98a1e71bdea2;p=lyx.git diff --git a/src/MetricsInfo.h b/src/MetricsInfo.h index 020b25f874..88dd39fd7d 100644 --- a/src/MetricsInfo.h +++ b/src/MetricsInfo.h @@ -18,7 +18,6 @@ #include "FontInfo.h" #include "support/strfwd.h" -#include "support/types.h" #include @@ -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 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_; ///