# HG changeset patch # User Santeri Piippo # Date 1375190236 -10800 # Node ID 43c1f5b17bfd6c443c3d0523d51970fdafdab358 # Parent ec95fc95e5f38f3026185cd86e072cdb757ae229 Made File::iterator private - it's used only for range-for loops so it should not be used by anything else than File itself. diff -r ec95fc95e5f3 -r 43c1f5b17bfd src/types.h --- 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,