summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-07-08 10:32:19 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:07 -0300
commit19130a4576b4abe8cd1d054863e1343aa38442c7 (patch)
treefd649a489a74b5733a454f2cd1e10ede431872de
parentab3fd527a3c7f4131fbf48b6c06166ef684431d3 (diff)
Init struct values on constructor.
Newer versions of parser do this, e.g. the version used on kdevelop4.
-rw-r--r--parser/rpp/pp-engine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser/rpp/pp-engine.h b/parser/rpp/pp-engine.h
index f5cbe222..894dca2d 100644
--- a/parser/rpp/pp-engine.h
+++ b/parser/rpp/pp-engine.h
@@ -35,6 +35,8 @@ namespace rpp
{
struct Value {
+ Value() : kind(Kind_Long), l(0) {}
+
enum Kind {
Kind_Long,
Kind_ULong,