[Cmake-commits] [cmake-commits] king committed cmFileCommand.cxx 1.131 1.132

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Apr 29 13:57:21 EDT 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv28384/Source

Modified Files:
	cmFileCommand.cxx 
Log Message:
COMP: Fix nested class member access

Nested classes have no special access to other members of their
enclosing class.  In cmFileCopier the nested class MatchRule must use
MatchProperties, so we grant friendship to it.


Index: cmFileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFileCommand.cxx,v
retrieving revision 1.131
retrieving revision 1.132
diff -C 2 -d -r1.131 -r1.132
*** cmFileCommand.cxx	29 Apr 2009 17:33:05 -0000	1.131
--- cmFileCommand.cxx	29 Apr 2009 17:57:19 -0000	1.132
***************
*** 948,951 ****
--- 948,953 ----
      MatchProperties(): Exclude(false), Permissions(0) {}
    };
+   struct MatchRule;
+   friend struct MatchRule;
    struct MatchRule
    {



More information about the Cmake-commits mailing list