summaryrefslogtreecommitdiff
path: root/includes/SimpleMustache.h
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 /includes/SimpleMustache.h
parent871ee4db27295b212bfdbc03550ed81f1f2e8b12 (diff)
Fixing a few bugs and warnings.
Diffstat (limited to 'includes/SimpleMustache.h')
-rw-r--r--includes/SimpleMustache.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/SimpleMustache.h b/includes/SimpleMustache.h
index d98b5eb..5b9dc3d 100644
--- a/includes/SimpleMustache.h
+++ b/includes/SimpleMustache.h
@@ -32,11 +32,13 @@ class SimpleMustache {
empty();
m_type = STRING;
m_str = str;
+ return *this;
}
Context & operator=(bool b) {
empty();
m_type = BOOLSEC;
m_bool = b;
+ return *this;
}
private:
enum ContextType {
@@ -48,7 +50,7 @@ class SimpleMustache {
} m_type;
Context(ContextType type) : m_type(type), m_root(false) { }
Context(Context & c) { Assert(false); }
- Context & operator=(Context & c) { Assert(false); }
+ Context & operator=(Context & c) { Assert(false); return *this; }
String m_str;
bool m_bool;
typedef std::map<String, Context *> SubContext;