~ubuntu-branches/ubuntu/wily/aria2/wily-proposed

« back to all changes in this revision

Viewing changes to src/help_tags.cc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry, Kartik Mistry, Patrick Ruckstuhl
  • Date: 2013-09-22 18:52:14 UTC
  • mfrom: (2.5.19 sid)
  • Revision ID: package-import@ubuntu.com-20130922185214-upeu2ljgeqi7e7oo
Tags: 1.18.0-1
[ Kartik Mistry ]
* New upstream release.
* debian/control:
  + (really) Set priority to optional from extra (Closes: #697659).
  + wrap-and-sort some fields.

[ Patrick Ruckstuhl ]
* debian/rules:
  + Allow parallel building (Closes: #720977)
* debian/tests, debian/control:
  + autopkgtest infrastructure

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
uint32_t idHelpTag(const char* tagName)
73
73
{
74
 
  for(const char** p = vbegin(HELP_TAG_NAMES), ** eop = vend(HELP_TAG_NAMES);
75
 
      p != eop; ++p) {
76
 
    if(strcmp(*p, tagName) == 0) {
77
 
      return p - vbegin(HELP_TAG_NAMES);
 
74
  uint32_t id = 0;
 
75
  for(auto p : HELP_TAG_NAMES) {
 
76
    if(strcmp(p, tagName) == 0) {
 
77
      return id;
78
78
    }
 
79
    ++id;
79
80
  }
80
81
  return MAX_HELP_TAG;
81
82
}