Tue, 30 Jul 2013 16:17:16 +0300
Made File::iterator private - it's used only for range-for loops so it should not be used by anything else than File itself.
src/types.h | file | annotate | diff | comparison | revisions |
--- a/src/types.h Tue Jul 30 07:38:08 2013 +0300 +++ b/src/types.h Tue Jul 30 16:17:16 2013 +0300 @@ -408,7 +408,7 @@ // A file interface with simple interface and support for range-for-loops. // ============================================================================= class File { -public: +private: // Iterator class to enable range-for-loop support. Rough hack.. don't use directly! class iterator { public: @@ -424,7 +424,8 @@ str m_text; bool m_gotdata = false; }; - + +public: enum OpenType { Read, Write,