Changeset 1217 for cpp


Ignore:
Timestamp:
04/17/23 00:08:20 (20 months ago)
Author:
Maciej Komosinski
Message:

Handle potentially missing name in Param

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/param/param.cpp

    r1186 r1217  
    358358{
    359359        SString ret = getName();
    360         ret += ".";
     360        if (ret.size()>0) //name might be unavailable, happened in GenMan sub-Params
     361                ret += ".";
    361362        ret += id(prop);
    362363        return ret;
     
    366367{
    367368        SString name_dot_prop = nameDotProperty(prop);
     369        if (getName()==NULL || getLongName()==NULL) //name/longname might be unavailable, happened in GenMan sub-Params
     370                return name_dot_prop;
     371       
    368372        if (strcmp(getName(), getLongName()) == 0)
    369373        {
Note: See TracChangeset for help on using the changeset viewer.