Changeset 10885 for trunk/FACT++/src


Ignore:
Timestamp:
05/27/11 17:59:56 (14 years ago)
Author:
tbretz
Message:
Use GetBool and Ptr from EventImp directly.
File:
1 edited

Legend:

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

    r10804 r10885  
    658658            return T::kSM_FatalError;
    659659
    660         const double *dat = reinterpret_cast<const double*>(evt.GetData());
     660        const double *dat = evt.Ptr<double>();
    661661
    662662        string command;
     
    679679            return T::kSM_FatalError;
    680680
    681         fDrive.SetVerbose(evt.GetText()[0]!=0);
     681        fDrive.SetVerbose(evt.GetBool());
    682682
    683683        return T::GetCurrentState();
     
    707707        poll();
    708708
    709         if (evt.GetText()[0]!=0)
     709        if (evt.GetBool())
    710710            fDrive.SetEndpoint(evt.GetString());
    711711
Note: See TracChangeset for help on using the changeset viewer.