Ignore:
Timestamp:
04/24/17 18:17:56 (7 years ago)
Author:
Maciej Komosinski
Message:

Model shape conversion no longer requires const Model&

File:
1 edited

Legend:

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

    r611 r660  
    471471public:
    472472        Model *converted_model;
    473         const Model *using_model;
    474         SolidsShapeTypeModel(const Model& m, Part::Shape use_shape = Part::SHAPE_CYLINDER, float thickness = 0.2);
    475         operator const Model&() const { return *using_model; }
    476         const Model& getModel() const { return *using_model; }
     473        Model *using_model;
     474        SolidsShapeTypeModel(Model& m, Part::Shape use_shape = Part::SHAPE_CYLINDER, float thickness = 0.2);
     475        operator Model&() { return *using_model; }
     476        Model& getModel() { return *using_model; }
    477477        ~SolidsShapeTypeModel() { if (converted_model) delete converted_model; }
    478478};
Note: See TracChangeset for help on using the changeset viewer.