Changeset 14019 for trunk


Ignore:
Timestamp:
06/01/12 13:27:35 (12 years ago)
Author:
tbretz
Message:
Fixed a problem if fDescriptionStates.itsData was still zero. I guess this has to do with the new Dim version
File:
1 edited

Legend:

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

    r14011 r14019  
    111111    StateMachineImp::AddStateName(state, name, doc);
    112112
    113     const string str0 = reinterpret_cast<char*>(fDescriptionStates.itsData);
    114     const string str1 = to_string((long long)state)+':'+name+'=';
     113    const string str0 = fDescriptionStates.itsData ? reinterpret_cast<char*>(fDescriptionStates.itsData) : "";
     114    const string str1 = to_string(state)+':'+name+'=';
    115115
    116116    if (str0.find(str1)!=string::npos)
Note: See TracChangeset for help on using the changeset viewer.