Commit 11147a45 authored by Kenton Varda's avatar Kenton Varda

Fix uninitialized members in capnpc-c++.

parent a4188f4d
......@@ -168,12 +168,15 @@ class CppTypeName {
// because we must add the "typename" and "template" disambiguator keywords as needed.
public:
inline CppTypeName(): isArgDependent(false), needsTypename(false) {}
inline CppTypeName(): isArgDependent(false), needsTypename(false),
hasInterfaces_(false), hasDisambiguatedTemplate_(false) {}
CppTypeName(CppTypeName&& other) = default;
CppTypeName(const CppTypeName& other)
: name(kj::strTree(other.name.flatten())),
isArgDependent(other.isArgDependent),
needsTypename(other.needsTypename) {}
needsTypename(other.needsTypename),
hasInterfaces_(other.hasInterfaces_),
hasDisambiguatedTemplate_(other.hasDisambiguatedTemplate_) {}
CppTypeName& operator=(CppTypeName&& other) = default;
CppTypeName& operator=(const CppTypeName& other) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment