Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2021-02-03 17:12:53 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-02-03 17:12:53 +0300
commit73c9f939e07916350bb0a70eeb4fee28da7dad9d (patch)
tree6af9ba45a76bfd795e466f9e419194a2eee87668 /xs
parente52efe48b08c6f1fd8dd39829f967ca5a6a57d3d (diff)
Squash merge of lh_brim_rework,
brim separated to Brim.cpp,hpp Refactored accessors to PrintObjectPtrs, PrintRegionPtrs, LayerPtrs, SupportLayerPtrs for const correctness.
Diffstat (limited to 'xs')
-rw-r--r--xs/xsp/Print.xsp8
1 files changed, 4 insertions, 4 deletions
diff --git a/xs/xsp/Print.xsp b/xs/xsp/Print.xsp
index d9872aa7e..cc3dac224 100644
--- a/xs/xsp/Print.xsp
+++ b/xs/xsp/Print.xsp
@@ -95,16 +95,16 @@ _constant()
int wipe_tower_number_of_toolchanges()
%code%{ RETVAL = THIS->wipe_tower_data().number_of_toolchanges; %};
PrintObjectPtrs* objects()
- %code%{ RETVAL = const_cast<PrintObjectPtrs*>(&THIS->objects()); %};
+ %code%{ RETVAL = const_cast<PrintObjectPtrs*>(&THIS->objects_mutable()); %};
Ref<PrintObject> get_object(int idx)
- %code%{ RETVAL = THIS->objects()[idx]; %};
+ %code%{ RETVAL = THIS->objects_mutable()[idx]; %};
size_t object_count()
%code%{ RETVAL = THIS->objects().size(); %};
PrintRegionPtrs* regions()
- %code%{ RETVAL = const_cast<PrintRegionPtrs*>(&THIS->regions()); %};
+ %code%{ RETVAL = const_cast<PrintRegionPtrs*>(&THIS->regions_mutable()); %};
Ref<PrintRegion> get_region(int idx)
- %code%{ RETVAL = THIS->regions()[idx]; %};
+ %code%{ RETVAL = THIS->regions_mutable()[idx]; %};
size_t region_count()
%code%{ RETVAL = THIS->regions().size(); %};