From 5bfc157171563809b78a00ad74b0e7a9690a17f0 Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 25 Nov 2011 23:51:38 -0800 Subject: Fixing a few bugs and warnings. --- src/SimpleMustache.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/SimpleMustache.cc b/src/SimpleMustache.cc index c7cbee4..e87d08d 100644 --- a/src/SimpleMustache.cc +++ b/src/SimpleMustache.cc @@ -353,7 +353,7 @@ Balau::SimpleMustache::Fragments::iterator Balau::SimpleMustache::render_r(IOtype == Fragment::STRING); + if(fr->type == Fragment::STRING) h->write(fr->str); } return end; @@ -408,6 +408,9 @@ Balau::SimpleMustache::Fragments::iterator Balau::SimpleMustache::render_r(IOstr, ++cur, sCtx->find(fr->str) != sCtx->end(), -1); break; + default: + Assert(false); + break; } } } -- cgit v1.2.3