~ubuntu-branches/ubuntu/hardy/gengetopt/hardy

« back to all changes in this revision

Viewing changes to src/skels/free_string.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-01-29 14:55:40 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080129145540-bkah1bl330gpelmh
Tags: 2.22-1ubuntu1
* Merge with Debian; remaining changes:
  - Fix build failures with g++-4.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
class free_string_gen_class
17
17
{
18
18
 protected:
19
 
  string comment;
20
19
  bool has_string_type;
21
20
  string opt_var;
22
21
  string structure;
27
26
  {
28
27
  }
29
28
  
30
 
  free_string_gen_class(const string &_comment, bool _has_string_type, const string &_opt_var, const string &_structure) :
31
 
    comment (_comment), has_string_type (_has_string_type), opt_var (_opt_var), structure (_structure)
 
29
  free_string_gen_class(bool _has_string_type, const string &_opt_var, const string &_structure) :
 
30
    has_string_type (_has_string_type), opt_var (_opt_var), structure (_structure)
32
31
  {
33
32
  }
34
33
 
55
54
      stream << s.substr (start);
56
55
  }
57
56
 
58
 
  void set_comment(const string &_comment)
59
 
  {
60
 
    comment = _comment;
61
 
  }
62
 
 
63
57
  void set_has_string_type(bool _has_string_type)
64
58
  {
65
59
    has_string_type = _has_string_type;