Switched the scanner list of owned indent markers to a ptr_vector

This commit is contained in:
Jesse Beder
2011-03-03 08:34:30 +00:00
parent a518d87cfc
commit d6aeb16450
2 changed files with 10 additions and 12 deletions

View File

@@ -12,6 +12,7 @@
#include <stack>
#include <set>
#include <map>
#include "ptr_vector.h"
#include "stream.h"
#include "token.h"
@@ -114,16 +115,16 @@ namespace YAML
Stream INPUT;
// the output (tokens)
std::queue <Token> m_tokens;
std::queue<Token> m_tokens;
// state info
bool m_startedStream, m_endedStream;
bool m_simpleKeyAllowed;
bool m_canBeJSONFlow;
std::stack <SimpleKey> m_simpleKeys;
std::stack <IndentMarker *> m_indents;
std::vector <IndentMarker *> m_indentRefs; // for "garbage collection"
std::stack <FLOW_MARKER> m_flows;
std::stack<SimpleKey> m_simpleKeys;
std::stack<IndentMarker *> m_indents;
ptr_vector<IndentMarker> m_indentRefs; // for "garbage collection"
std::stack<FLOW_MARKER> m_flows;
};
}