Changeset 11022 for trunk


Ignore:
Timestamp:
06/14/11 18:42:12 (13 years ago)
Author:
tbretz
Message:
Added more const qualifiers.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/scheduler.cc

    r11019 r11022  
    156156    string fDBName;
    157157
    158 
    159 
    160158    int Schedule()
    161159    {
     
    167165        time_duration repostime(0, 5, 0);
    168166        //ptime startsched=microsec_clock::local_time();
    169         ptime startsched(microsec_clock::local_time());
    170         ptime stopsched=startsched+years(1);
     167
     168        const ptime startsched(microsec_clock::local_time());
     169        const ptime stopsched=startsched+years(1);
    171170
    172171        ostringstream str;
     
    198197        }
    199198
     199        cout << (string)what[9] << " | " << fDBName << " | " << endl;
     200
     201
    200202        const string user   = what[2];
    201203        const string passwd = what[4];
    202204        const string server = what[5];
    203         string db = what[9];
    204         if (fDBName.size()!=0)
    205             db = fDBName;
    206         const int port      = atoi(string(what[7]).c_str());
     205        const string db     = fDBName.empty() ? what[9] : fDBName;
     206        const int    port   = atoi(string(what[7]).c_str());
    207207
    208208        ostringstream dbnamemsg;
     
    252252
    253253        ObservationParameters olist[res.num_rows()];
    254         vector<FixedObs> obsfixedlist;
    255         vector<StdObs> obsstdlist;
     254        vector<FixedObs>     obsfixedlist;
     255        vector<StdObs>       obsstdlist;
    256256        vector<ScheduledObs> obslist;
    257257        vector<ScheduledRun> runlist;
Note: See TracChangeset for help on using the changeset viewer.