summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmState.cxx6
-rw-r--r--Source/cmState.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index 9cbb841..d73148d 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -803,6 +803,12 @@ cmState::Snapshot cmState::Pop(cmState::Snapshot originSnapshot)
return Snapshot(this, originSnapshot.Position->CallStackParent);
}
+cmState::Snapshot::Snapshot(cmState* state)
+ : State(state)
+ , Position()
+{
+}
+
cmState::Snapshot::Snapshot(cmState* state, PositionType position)
: State(state),
Position(position)
diff --git a/Source/cmState.h b/Source/cmState.h
index acd23a5..17ee6ec 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -43,7 +43,8 @@ public:
class Snapshot {
public:
- Snapshot(cmState* state = 0, PositionType position = PositionType());
+ Snapshot(cmState* state = 0);
+ Snapshot(cmState* state, PositionType position);
void SetListFile(std::string const& listfile);