diff --git a/src/StateManager.h b/src/StateManager.h index 8a1799f..894d61c 100644 --- a/src/StateManager.h +++ b/src/StateManager.h @@ -122,9 +122,8 @@ public: protected: Imp * imp; - class Matrix_less + struct Matrix_less { - public: bool operator () (const Matrix & m1, const Matrix & m2) const { // Note that we only care about the first 4 elements @@ -180,9 +179,8 @@ public: protected: Imp * imp; - class Color_hash + struct Color_hash { - public: size_t operator () (const Color & color) const { if(color.transparent) diff --git a/src/StringFormatter.h b/src/StringFormatter.h index 2d34126..dd3f3c1 100644 --- a/src/StringFormatter.h +++ b/src/StringFormatter.h @@ -16,9 +16,8 @@ namespace pdf2htmlEX { class StringFormatter { public: - class GuardedPointer + struct GuardedPointer { - public: GuardedPointer(StringFormatter * sf) : sf(sf) { ++(sf->buf_cnt); } GuardedPointer(const GuardedPointer & gp) : sf(gp.sf) { ++(sf->buf_cnt); } ~GuardedPointer(void) { --(sf->buf_cnt); } diff --git a/src/TmpFiles.h b/src/TmpFiles.h index f036593..b7ad46c 100644 --- a/src/TmpFiles.h +++ b/src/TmpFiles.h @@ -18,10 +18,8 @@ public: private: void clean(); -private: const Param& param; std::set tmp_files; - }; } // namespace pdf2htmlEX