summaryrefslogtreecommitdiff
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-04-29 13:57:19 -0400
committerBrad King <brad.king@kitware.com>2009-04-29 13:57:19 -0400
commitd91c5b1a07da38329a8572369c64d92571a3495b (patch)
treea9b1004a862a621d91f4180f5331e7ede5882120 /Source/cmFileCommand.cxx
parent222abaad5bb7ecb9bf3341f15d7a08eaaf44d906 (diff)
downloadcmake-d91c5b1a07da38329a8572369c64d92571a3495b.tar.gz
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.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index e45cd07510..001d1bb32c 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -947,6 +947,8 @@ protected:
mode_t Permissions;
MatchProperties(): Exclude(false), Permissions(0) {}
};
+ struct MatchRule;
+ friend struct MatchRule;
struct MatchRule
{
cmsys::RegularExpression Regex;