Const version of a PrintObject::get_region(). Made get_region() inline.

This commit is contained in:
bubnikv 2017-01-05 09:11:36 +01:00
parent b42c5d6dfa
commit bbdaa44acb
2 changed files with 2 additions and 7 deletions

View File

@ -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()
{

View File

@ -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