# # patch "format.hh" # from [e2060fde3c8635c17e1c3d0cb164cebd6bfba6b2] # to [e8da6f87676eae0f78f3e72f503164b035fd2d79] # --- format.hh +++ format.hh @@ -18,10 +18,10 @@ class BaseFormatter { public: - BaseFormatter(app_state &app); - virtual ~BaseFormatter(); + BaseFormatter(app_state &app); + virtual ~BaseFormatter(); - virtual void apply(const revision_id &rid) = 0; + virtual void apply(const revision_id &rid) = 0; protected: app_state &app; @@ -33,11 +33,11 @@ class FormatFunc : public std::unary_function { public: - FormatFunc(std::ostream &out, app_state &app); - ~FormatFunc(); - void operator ()(const revision_id &rid) { fmt->apply(rid); } + FormatFunc(std::ostream &out, app_state &app); + ~FormatFunc(); + void operator ()(const revision_id &rid) { fmt->apply(rid); } private: - std::auto_ptr fmt; + std::auto_ptr fmt; }; @@ -53,16 +53,16 @@ private: // changeset fmt strs indexing enum enum FMTIDX - { - FMTIDX_REVISION, - FMTIDX_ANCESTORS, - FMTIDX_DELFILES, - FMTIDX_DELDIRS, - FMTIDX_RENFILES, - FMTIDX_RENDIRS, - FMTIDX_ADDFILES, - FMTIDX_MODFILES - }; + { + FMTIDX_REVISION, + FMTIDX_ANCESTORS, + FMTIDX_DELFILES, + FMTIDX_DELDIRS, + FMTIDX_RENFILES, + FMTIDX_RENDIRS, + FMTIDX_ADDFILES, + FMTIDX_MODFILES + }; void print_cert (std::vector < revision < cert > >&certs, const std::string &name, bool from_start=false, bool from_end=false, const std::string &sep="");