Changeset 10498 for trunk/FACT++/src/StateMachineImp.cc
- Timestamp:
- 04/29/11 13:25:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/StateMachineImp.cc
r10497 r10498 715 715 const StateNames::const_iterator i = fStateNames.find(state); 716 716 717 string rc;718 rc +=state;719 return i==fStateNames.end() || i->second.first.empty() ? rc: i->second.first;717 ostringstream s; 718 s << state; 719 return i==fStateNames.end() || i->second.first.empty() ? s.str() : i->second.first; 720 720 } 721 721 … … 754 754 const string &str = GetStateName(state); 755 755 756 strings;757 s +=state;758 if (str==s )756 ostringstream s; 757 s << state; 758 if (str==s.str()) 759 759 return str; 760 760 761 return str.empty() ? s : (str+'['+s+']');761 return str.empty() ? s.str() : (str+'['+s.str()+']'); 762 762 } 763 763
Note:
See TracChangeset
for help on using the changeset viewer.