Move ScalarSequenceParser::HandleSequenceEnd to .cc

This commit is contained in:
Eryn Wells 2014-07-28 17:38:45 -07:00
parent a393a8fb5a
commit 7d991cea86
2 changed files with 8 additions and 15 deletions

View file

@ -11,6 +11,9 @@
namespace charles {
namespace yaml {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
template<typename T>
bool
ScalarSequenceParser<T>::HandleScalar(const std::string& anchor,
@ -49,6 +52,9 @@ ScalarSequenceParser<T>::HandleSequenceEnd(const Parser::Mark& startMark,
return true;
}
#pragma clang diagnostic pop
Vector3Parser::Vector3Parser(Scene& scene,
Parser::Stack& parsers,
CallbackFunction onDone)

View file

@ -54,21 +54,8 @@ struct ScalarSequenceParser
const Parser::Mark& startMark,
const Parser::Mark& endMark);
bool
HandleSequenceEnd(const Parser::Mark& startMark,
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;
}
bool HandleSequenceEnd(const Parser::Mark& startMark,
const Parser::Mark& endMark);
private:
VectorType mVector;