Ignore:
Timestamp:
07/20/16 14:57:12 (8 years ago)
Author:
Maciej Komosinski
Message:
  • More strict type description checking when adding a property in mutableparam
  • Error message when the param property could not be added for some reason
File:
1 edited

Legend:

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

    r533 r535  
    710710}
    711711
     712bool ParamInterface::isValidTypeDescription(const char* t)
     713{
     714if (t==NULL) return false;
     715if (*t==0) return false;
     716if (strchr("dfsoxp", *t)==NULL) return false;
     717return true;
     718}
    712719
    713720//////////////////////////////// PARAM ////////////////////////////////////
     
    721728        const char* err=NULL;
    722729
     730        if (!isValidTypeDescription(t))
     731                err="invalid type description";
    723732        if (*t=='p')
    724733        {
Note: See TracChangeset for help on using the changeset viewer.