Changeset 18142 for trunk/FACT++/src


Ignore:
Timestamp:
02/18/15 11:07:36 (10 years ago)
Author:
tbretz
Message:
Added some explicit conversions, a const qualifier and removed an obsolete conditional.
File:
1 edited

Legend:

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

    r18133 r18142  
    7979    void UpdateProc()
    8080    {
    81         const array<uint32_t,3> v = {{ fThresholdMin, fThresholdMax, fThresholdStep }};
     81        const array<uint32_t,3> v = {{ uint32_t(fThresholdMin), uint32_t(fThresholdMax), uint32_t(fThresholdStep) }};
    8282        fDimProc.Update(v);
    8383    }
     
    237237        //    return kSM_FatalError;
    238238
    239         string fType  = evt.Ptr<char>(12);
     239        const string fType = evt.Ptr<char>(12);
    240240
    241241        auto it = fTypes.find(fType);
     
    251251            }
    252252        }
    253         //const config &conf = it->second;
    254 
    255         if (it!=fTypes.end())
    256         {
    257             fCounterMax=it->second.fCounterMax;
    258             fResolution=it->second.fResolution;
    259         }
     253
     254        fCounterMax = it->second.fCounterMax;
     255        fResolution = it->second.fResolution;
    260256
    261257        fCommand = "FTM_CONTROL/"+command;
Note: See TracChangeset for help on using the changeset viewer.