Changeset 2562 for branches


Ignore:
Timestamp:
06/12/12 10:44:29 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2813

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs:

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Reuse AipsError object that is created outside while loop.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hpc33/src/STLineFinder.cpp

    r2345 r2562  
    10471047                     // because all previous values may be corrupted by the
    10481048                     // presence of spectral lines
     1049
     1050  AipsError spuriousError("spurious") ;
     1051 
    10491052  while (true) {
    10501053     // a buffer for new lines found at this iteration
     
    10591062         first_pass=False;
    10601063         if (!new_lines.size())
    1061               throw AipsError("spurious"); // nothing new - use the same
    1062                                            // code as for a real exception
     1064//               throw AipsError("spurious"); // nothing new - use the same
     1065//                                            // code as for a real exception
     1066              throw spuriousError; // nothing new - use the same
     1067                                   // code as for a real exception
    10631068     }
    10641069     catch(const AipsError &ae) {
Note: See TracChangeset for help on using the changeset viewer.