Mercurial > octave
comparison libinterp/corefcn/graphics.cc @ 28346:d0555f415774 stable
fix constness of some graphics properties methods
* graphics.in.h, graphics.cc (base_properties::has_dynamic_property,
base_properties::get_property_dynamic): Now const.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 May 2020 11:23:24 -0400 |
parents | c5f12165d294 |
children | d73e4749d8dd df307ee1fb30 |
comparison
equal
deleted
inserted
replaced
28345:c5f12165d294 | 28346:d0555f415774 |
---|---|
3339 { | 3339 { |
3340 return dynamic_properties; | 3340 return dynamic_properties; |
3341 } | 3341 } |
3342 | 3342 |
3343 bool | 3343 bool |
3344 base_properties::has_dynamic_property (const std::string& pname) | 3344 base_properties::has_dynamic_property (const std::string& pname) const |
3345 { | 3345 { |
3346 const std::set<std::string>& dynprops = dynamic_property_names (); | 3346 const std::set<std::string>& dynprops = dynamic_property_names (); |
3347 | 3347 |
3348 if (dynprops.find (pname) != dynprops.end ()) | 3348 if (dynprops.find (pname) != dynprops.end ()) |
3349 return true; | 3349 return true; |
3366 | 3366 |
3367 mark_modified (); | 3367 mark_modified (); |
3368 } | 3368 } |
3369 | 3369 |
3370 property | 3370 property |
3371 base_properties::get_property_dynamic (const caseless_str& pname) | 3371 base_properties::get_property_dynamic (const caseless_str& pname) const |
3372 { | 3372 { |
3373 std::map<caseless_str, property, cmp_caseless_str>::const_iterator it | 3373 std::map<caseless_str, property, cmp_caseless_str>::const_iterator it |
3374 = all_props.find (pname); | 3374 = all_props.find (pname); |
3375 | 3375 |
3376 if (it == all_props.end ()) | 3376 if (it == all_props.end ()) |