Ignore:
Timestamp:
03/22/16 01:19:47 (8 years ago)
Author:
Maciej Komosinski
Message:

Accessing const objects, short -> paInt, less critical messages when not necessary, accessing dictionaries with "->"

File:
1 edited

Legend:

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

    r396 r478  
    4141        if (addnew) count++;
    4242        t = tab = (ParamEntry*)malloc(sizeof(ParamEntry)*(count + gcount + 1));
    43         t->group = (short)gcount;
    44         t->flags = (short)count;
     43        t->group = (paInt)gcount;
     44        t->flags = (paInt)count;
    4545        t->name = maybedup(dupentries, rename ? rename : pi->getName());
    4646        t->type = maybedup(dupentries, pi->getDescription());
     
    8282                                        offset += sizeof(ExtValue);
    8383                                        }
    84                                 t->group = (short)(stripgroups ? 0 : pi->group(i));
    85                                 t->flags = (short)pi->flags(i);
     84                                t->group = (paInt)(stripgroups ? 0 : pi->group(i));
     85                                t->flags = (paInt)pi->flags(i);
    8686                                if (readonly_into_userreadonly && (t->flags & PARAM_READONLY))
    8787                                        t->flags=(t->flags & ~PARAM_READONLY) | PARAM_USERREADONLY;
Note: See TracChangeset for help on using the changeset viewer.