diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-16 23:54:57 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-16 23:54:57 +0530 |
commit | 7e124cf95e2a85897bd78b6362ff9b9b1b87c4b8 (patch) | |
tree | 38020068c1e59779f7f778c979f0ee881253e62f /complete.h | |
parent | 6f330f961b0186aa4d5f2f3f45b19b84ec7b3516 (diff) |
Added constructor to completion_t for guarranted initialzation of flags attribute.
Diffstat (limited to 'complete.h')
-rw-r--r-- | complete.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -127,6 +127,10 @@ struct completion_t */ int flags; + completion_t () { + flags = 0; + } + bool operator < (const completion_t& rhs) const { return this->completion < rhs.completion; } bool operator == (const completion_t& rhs) const { return this->completion == rhs.completion; } bool operator != (const completion_t& rhs) const { return this->completion != rhs.completion; } |