Changeset 1280 for cpp/frams/model


Ignore:
Timestamp:
09/10/23 01:51:57 (15 months ago)
Author:
Maciej Komosinski
Message:

Added explicit type casts (size_t vs. int etc.)

Location:
cpp/frams/model
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/autoname.cpp

    r1130 r1280  
    5959static void przeplatanka(char *out, char *in1, char *in2)
    6060{
    61         int d1 = strlen(in1), d2 = strlen(in2);
     61        int d1 = (int)strlen(in1), d2 = (int)strlen(in2);
    6262        int p1 = 0, p2 = 0;
    6363        int pp = d1 + d2;
  • cpp/frams/model/model.cpp

    r1215 r1280  
    610610int Model::getCheckpointCount()
    611611{
    612         return checkpoints.size();
     612        return (int)checkpoints.size();
    613613}
    614614
  • cpp/frams/model/modelparts.h

    r1122 r1280  
    229229        SString name, longname, description;
    230230        ParamEntry *props;
    231         bool ownedprops;//< destructor will free props using ParamObject::freeParamTab
     231        bool ownedprops; //< destructor will free props using ParamObject::freeParamTab
    232232        paInt prefinputs, prefoutput;
    233233        paInt preflocation;
     
    304304                return vectordata;
    305305        }
    306         void setSymbolGlyph(int *data, bool owned = 1)
     306        void setSymbolGlyph(int *data, bool owned = true)
    307307        {
    308308                if (vectordata && ownedvectordata) delete[]vectordata;
    309                 vectordata = data; ownedvectordata = owned;
     309                vectordata = data;
     310                ownedvectordata = owned;
    310311        }
    311312        /** additional information about how the neuron should be drawn
  • cpp/frams/model/similarity/simil-match.cpp

    r1044 r1280  
    6969
    7070        // return the result
    71         return m_apvMatched[Obj]->size();
     71        return (int)m_apvMatched[Obj]->size();
    7272}
    7373
Note: See TracChangeset for help on using the changeset viewer.