Const version of a PrintObject::get_region(). Made get_region() inline.
This commit is contained in:
parent
b42c5d6dfa
commit
bbdaa44acb
@ -133,12 +133,6 @@ Print::clear_regions()
|
||||
this->delete_region(i);
|
||||
}
|
||||
|
||||
PrintRegion*
|
||||
Print::get_region(size_t idx)
|
||||
{
|
||||
return regions.at(idx);
|
||||
}
|
||||
|
||||
PrintRegion*
|
||||
Print::add_region()
|
||||
{
|
||||
|
@ -206,7 +206,8 @@ class Print
|
||||
bool reload_model_instances();
|
||||
|
||||
// methods for handling regions
|
||||
PrintRegion* get_region(size_t idx);
|
||||
PrintRegion* get_region(size_t idx) { return regions.at(idx); }
|
||||
const PrintRegion* get_region(size_t idx) const { return regions.at(idx); }
|
||||
PrintRegion* add_region();
|
||||
|
||||
// methods for handling state
|
||||
|
Loading…
Reference in New Issue
Block a user