summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-25 23:51:38 -0800
committerPixel <pixel@nobis-crew.org>2011-11-25 23:51:38 -0800
commit5bfc157171563809b78a00ad74b0e7a9690a17f0 (patch)
treeed84043bcb5629805536f49ee6f12bd4ef64614f /src
parent871ee4db27295b212bfdbc03550ed81f1f2e8b12 (diff)
Fixing a few bugs and warnings.
Diffstat (limited to 'src')
-rw-r--r--src/SimpleMustache.cc5
1 files changed, 4 insertions, 1 deletions
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(IO<Ha
return end;
for (cur = begin; cur != end; cur++) {
Fragment * fr = *cur;
- if(fr->type == 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(IO<Ha
case Fragment::INVERTED:
cur = render_r(h, NULL, fr->str, ++cur, sCtx->find(fr->str) != sCtx->end(), -1);
break;
+ default:
+ Assert(false);
+ break;
}
}
}