Changeset 230 for trunk/lib/File.cc


Ignore:
Timestamp:
Mar 25, 2007, 11:18:46 PM (15 years ago)
Author:
Peter Johansson
Message:

copyright: added warning when missing alias

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r228 r230  
    157157  (const std::vector<std::string>& dates,
    158158   const std::vector<std::string>& authors,
    159    const std::map<std::string, std::string>& alias) const
     159   std::map<std::string, std::string>& alias) const
    160160  {
    161161    if (ignore())
     
    178178      if (name != alias.end() )
    179179        copyright[timeinfo->tm_year].insert(name->second);
    180       else
     180      else {
    181181        // else insert user name
    182182        copyright[timeinfo->tm_year].insert(authors[*i]);
     183        std::cerr << "Warning: no alias found for `" << authors[*i] << "`\n";
     184        // insert alias to avoid multiple warnings.
     185        alias[authors[*i]] = authors[*i];
     186      }
    183187    }
    184188   
Note: See TracChangeset for help on using the changeset viewer.