Changeset 2804 for trunk/external-alma


Ignore:
Timestamp:
03/29/13 18:18:20 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Minor bug fix on handling default poltype.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/atnf/PKSIO/NROReader.cc

    r2783 r2804  
    515515  string poltp = dataset_->getPOLTP()[0] ;
    516516  //cout << "poltp = '" << poltp << "'" << endl ;
    517   if ( poltp == "" || poltp[0] == ' ' )
     517  if ( poltp.empty() || poltp[0] == ' ' || poltp[0] == '\0' )
    518518    //poltp = "None" ;
    519519    poltp = "linear" ;   // if no polarization type specified, set to "linear"
     
    525525    poltp = "circular" ;
    526526  poltype = poltp ;
    527   //cout << "poltype = " << poltype << endl ;
     527  //cout << "poltype = '" << poltype << "'" << endl ;
    528528
    529529  //vector<Bool> ifs = getIFs() ;
Note: See TracChangeset for help on using the changeset viewer.