Move ScalarSequenceParser::HandleSequenceEnd to .cc
This commit is contained in:
parent
a393a8fb5a
commit
7d991cea86
2 changed files with 8 additions and 15 deletions
|
@ -11,6 +11,9 @@
|
||||||
namespace charles {
|
namespace charles {
|
||||||
namespace yaml {
|
namespace yaml {
|
||||||
|
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
bool
|
bool
|
||||||
ScalarSequenceParser<T>::HandleScalar(const std::string& anchor,
|
ScalarSequenceParser<T>::HandleScalar(const std::string& anchor,
|
||||||
|
@ -49,6 +52,9 @@ ScalarSequenceParser<T>::HandleSequenceEnd(const Parser::Mark& startMark,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
|
||||||
|
|
||||||
Vector3Parser::Vector3Parser(Scene& scene,
|
Vector3Parser::Vector3Parser(Scene& scene,
|
||||||
Parser::Stack& parsers,
|
Parser::Stack& parsers,
|
||||||
CallbackFunction onDone)
|
CallbackFunction onDone)
|
||||||
|
|
|
@ -54,21 +54,8 @@ struct ScalarSequenceParser
|
||||||
const Parser::Mark& startMark,
|
const Parser::Mark& startMark,
|
||||||
const Parser::Mark& endMark);
|
const Parser::Mark& endMark);
|
||||||
|
|
||||||
bool
|
bool HandleSequenceEnd(const Parser::Mark& startMark,
|
||||||
HandleSequenceEnd(const Parser::Mark& startMark,
|
const Parser::Mark& endMark);
|
||||||
const Parser::Mark& endMark)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* XXX: Need to prefix with this-> for some reason. Maybe the
|
|
||||||
* compiler can't figure out the type properly?
|
|
||||||
*/
|
|
||||||
this->SetDone(true);
|
|
||||||
|
|
||||||
/* We have a completed vector. Notify the caller. */
|
|
||||||
this->Notify(mVector);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
VectorType mVector;
|
VectorType mVector;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue