Changeset 16413 for trunk


Ignore:
Timestamp:
05/28/13 17:58:08 (11 years ago)
Author:
tbretz
Message:
Replaced some size() by empty() where possible.
File:
1 edited

Legend:

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

    r16412 r16413  
    727727    void HandleCalibrateCurrents(const EventImp &evt)
    728728    {
    729         if (fBiasVolt.size()==0 || fCalibration.size()==0 || evt.GetSize()<416*sizeof(int16_t))
     729        if (fBiasVolt.empty() || fCalibration.empty() || evt.GetSize()<416*sizeof(int16_t))
    730730            return;
    731731
     
    875875    int PrintCalibration()
    876876    {
    877         if (fCalibration.size()==0)
     877        if (fCalibration.empty())
    878878        {
    879879            Out() << "No calibration performed so far." << endl;
     
    10431043            return kSM_FatalError;
    10441044
    1045         if (fCalibration.size()==0)
     1045        if (fCalibration.empty())
    10461046        {
    10471047            Warn("Current control needs a bias crate calibration first... command ignored.");
     
    11301130        }
    11311131
    1132         if (fVoltGapd.size()==0)
     1132        if (fVoltGapd.empty())
    11331133        {
    11341134            Error("No G-APD reference voltages received yet (BIAS_CONTROL/NOMINAL).");
Note: See TracChangeset for help on using the changeset viewer.