Ignore:
Timestamp:
04/26/07 14:55:17 (17 years ago)
Author:
mar637
Message:

added explicit keyword for single arument constructors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STLineFinder.h

    r991 r1353  
    8383                                           // start channel and stop+1
    8484   public:
    85         IntersectsWith(const std::pair<int,int> &in_line1);
     85       explicit IntersectsWith(const std::pair<int,int> &in_line1);
    8686        // return true if line2 intersects with line1 with at least one
    8787        // common channel, and false otherwise
     
    9595                                           // start channel and stop+1
    9696   public:
    97         BuildUnion(const std::pair<int,int> &line1);
     97        explicit BuildUnion(const std::pair<int,int> &line1);
    9898        // update temp_line with a union of temp_line and new_line
    9999        // provided there is no gap between the lines
     
    109109                                           // start channel and stop+1
    110110   public:
    111         LaterThan(const std::pair<int,int> &in_line1);
     111        explicit LaterThan(const std::pair<int,int> &in_line1);
    112112
    113113        // return true if line2 should be placed later than line1
Note: See TracChangeset for help on using the changeset viewer.