From cb40af5d6fa65dae9421280c05934eafc8a66165 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 18 Oct 2016 21:28:45 +0200 Subject: cmState: Move SnapshotDataType to separate namespace --- Source/cmState.cxx | 2 +- Source/cmState.h | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 86d238a..c3e061b 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -25,7 +25,7 @@ static std::string const kBUILDSYSTEM_TARGETS = "BUILDSYSTEM_TARGETS"; static std::string const kSOURCE_DIR = "SOURCE_DIR"; static std::string const kSUBDIRECTORIES = "SUBDIRECTORIES"; -struct cmState::SnapshotDataType +struct cmStateDetail::SnapshotDataType { cmState::PositionType ScopeParent; cmState::PositionType DirectoryParent; diff --git a/Source/cmState.h b/Source/cmState.h index 24db08c..d733469 100644 --- a/Source/cmState.h +++ b/Source/cmState.h @@ -25,15 +25,16 @@ class cmPropertyDefinition; namespace cmStateDetail { struct BuildsystemDirectoryStateType; +struct SnapshotDataType; } class cmState { - struct SnapshotDataType; struct PolicyStackEntry; - typedef cmLinkedTree::iterator PositionType; + typedef cmLinkedTree::iterator PositionType; friend class Snapshot; friend struct cmStateDetail::BuildsystemDirectoryStateType; + friend struct cmStateDetail::SnapshotDataType; public: cmState(); @@ -341,7 +342,7 @@ private: cmLinkedTree ExecutionListFiles; cmLinkedTree PolicyStack; - cmLinkedTree SnapshotData; + cmLinkedTree SnapshotData; cmLinkedTree VarTree; std::string SourceDirectory; -- cgit v0.12