Changeset 622 for trunk


Ignore:
Timestamp:
Apr 23, 2008, 5:22:21 PM (13 years ago)
Author:
Peter Johansson
Message:

refs #314 - got confused by enum comment_or_copy in previous commit r610

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r610 r622  
    4141#include <iostream>
    4242#include <map>
     43#include <stdexcept>
    4344#include <string>
    4445#include <sys/stat.h>
     
    262263      if (*line_type==LineTypeParser::other)
    263264        os << "line-other";
    264       else if (*line_type==LineTypeParser::comment_or_copy)
     265      else if (*line_type==LineTypeParser::comment ||
     266               *line_type==LineTypeParser::copyright)       
    265267        os << "line-comment";
     268      else if (*line_type==LineTypeParser::code)
     269        os << "line-code";
    266270      else
    267         os << "line-code";
     271        throw std::runtime_error("unspected line type found");
    268272      os << "\">" << blame.line_no()+1
    269273         << "</td>\n<td>";
Note: See TracChangeset for help on using the changeset viewer.