Changeset 997 for cpp/frams


Ignore:
Timestamp:
07/11/20 13:45:13 (4 years ago)
Author:
Maciej Komosinski
Message:

Make getPreferredLocation() return the proper PrefLocation? enum, not its int counterpart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/modelparts.h

    r978 r997  
    282282                @return 2 (PREFER_JOINT) if the neuron prefers to be attached to a Joint ( @see Neuro::attachToJoint() )
    283283                */
    284         int getPreferredLocation() { return (int)preflocation; }
     284        PrefLocation getPreferredLocation() { return (PrefLocation)preflocation; }
    285285        /** vector drawing to be used in neuro net diagram.
    286286                interpretation:
Note: See TracChangeset for help on using the changeset viewer.