Ignore:
Timestamp:
04/29/11 13:09:16 (14 years ago)
Author:
tbretz
Message:
Removed the last usage of Tools::Form.
File:
1 edited

Legend:

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

    r10496 r10497  
    563563EventImp &StateMachineImp::AddTransition(int targetstate, const char *name, int s1, int s2, int s3, int s4, int s5)
    564564{
    565     return AddTransition(targetstate, name,
    566                          Tools::Form("%d %d %d %d %d", s1, s2, s3, s4, s5).c_str(), "");
     565    ostringstream str;
     566    str << s1 << ' '  << s2 << ' ' << s3 << ' ' << s4 << ' ' << s5;
     567    return AddTransition(targetstate, name, str.str().c_str(), "");
    567568}
    568569
     
    596597EventImp &StateMachineImp::AddTransition(int targetstate, const char *name, const char *fmt, int s1, int s2, int s3, int s4, int s5)
    597598{
    598     return AddTransition(targetstate, name,
    599                          Tools::Form("%d %d %d %d %d", s1, s2, s3, s4, s5).c_str(), fmt);
     599    ostringstream str;
     600    str << s1 << ' '  << s2 << ' ' << s3 << ' ' << s4 << ' ' << s5;
     601    return AddTransition(targetstate, name, str.str().c_str(), fmt);
    600602}
    601603
Note: See TracChangeset for help on using the changeset viewer.