diff options
author | Roger Leigh <rleigh@debian.org> | 2009-07-26 11:59:51 +0100 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2009-07-26 11:59:51 +0100 |
commit | fedc7f9b861e36dd1173aa92d7c2248e51537384 (patch) | |
tree | 2c9758983857740346d920de7c3121298e00e039 /sbuild | |
parent | ce23707a79d98c0ce20721d8a841cd68fa4a1dff (diff) | |
download | schroot-fedc7f9b861e36dd1173aa92d7c2248e51537384.tar.gz |
sbuild::keyfile_parser is a class not a struct
Explicitly default construct parent class. This would have already
been done implicitly, it's just for safety.
Diffstat (limited to 'sbuild')
-rw-r--r-- | sbuild/sbuild-keyfile.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sbuild/sbuild-keyfile.h b/sbuild/sbuild-keyfile.h index 7efd5952..bcd056f5 100644 --- a/sbuild/sbuild-keyfile.h +++ b/sbuild/sbuild-keyfile.h @@ -47,8 +47,9 @@ namespace sbuild }; template <typename K> - struct keyfile_parser : public basic_keyfile_parser<K> + class keyfile_parser : public basic_keyfile_parser<K> { + public: // Workaround for GCC bug. typedef keyfile_base::error error; // This is the correct form, but is not currently supported by @@ -65,6 +66,13 @@ namespace sbuild using basic_keyfile_parser<K>::comment_set; using basic_keyfile_parser<K>::line_number; + keyfile_parser(): + basic_keyfile_parser<K>() + {} + + virtual ~keyfile_parser() + {} + virtual void parse_line (std::string const& line) { |