diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2012-04-13 19:31:23 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2012-04-13 19:31:28 +0200 |
commit | 56d91ddd2cd42b782cde0bb3fdf4eb9ebe7597be (patch) | |
tree | abd2a51503f3a8845d1b381fca671958ce00da46 /includes/SimpleMustache.h | |
parent | 869b8141a8383171334129859789155f3ad42f90 (diff) |
Fixing my constant-strings constructs (Thanks Kurtis!)
Diffstat (limited to 'includes/SimpleMustache.h')
-rw-r--r-- | includes/SimpleMustache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/SimpleMustache.h b/includes/SimpleMustache.h index 6156923..52a2603 100644 --- a/includes/SimpleMustache.h +++ b/includes/SimpleMustache.h @@ -81,7 +81,7 @@ class SimpleMustache { setTemplate(b); } template<size_t S> - void setTemplate(const char str[S]) { setTemplate((const uint8_t *) str, S); } + void setTemplate(const char (&str)[S]) { setTemplate((const uint8_t *) str, S - 1); } void setTemplate(const char * str, ssize_t s) { setTemplate((const uint8_t *) str, s); } void setTemplate(const String & str) { setTemplate((const uint8_t *) str.to_charp(), str.strlen()); } void render(IO<Handle> h, Context * ctx) const { AAssert(ctx, "Please pass on a context to render"); render_r(h, ctx, "", m_fragments.begin(), false, -1); } |