Skip to content

Commit 036f300

Browse files
author
John Stiles
committed
Merge remote-tracking branch 'refs/remotes/miloyip/master'
2 parents 237d2f2 + 2df32fb commit 036f300

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

example/simplepullreader/simplepullreader.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ struct MyHandler {
1616
const char* type;
1717
std::string data;
1818

19+
MyHandler() : type(), data() {}
20+
1921
bool Null() { type = "Null"; data.clear(); return true; }
2022
bool Bool(bool b) { type = "Bool:"; data = b? "true": "false"; return true; }
2123
bool Int(int i) { type = "Int:"; data = stringify(i); return true; }
@@ -30,6 +32,9 @@ struct MyHandler {
3032
bool EndObject(SizeType memberCount) { type = "EndObject:"; data = stringify(memberCount); return true; }
3133
bool StartArray() { type = "StartArray"; data.clear(); return true; }
3234
bool EndArray(SizeType elementCount) { type = "EndArray:"; data = stringify(elementCount); return true; }
35+
private:
36+
MyHandler(const MyHandler& noCopyConstruction);
37+
MyHandler& operator=(const MyHandler& noAssignment);
3338
};
3439

3540
int main() {

0 commit comments

Comments
 (0)