Skip to content

Commit

Permalink
minor cleanup: don't use return for void
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolforg committed Dec 19, 2021
1 parent 310aaad commit 3e01de7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synfig-studio/src/gui/states/state_bone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,23 +134,23 @@ class studio::StateBone_Context : public sigc::trackable
public:

synfig::String get_id() const { return id_entry.get_text();}
void set_id(const synfig::String& x){ return id_entry.set_text(x);}
void set_id(const synfig::String& x){ id_entry.set_text(x);}

Real get_skel_bone_width() const {
return skel_bone_width_dist.get_value().get(
Distance::SYSTEM_UNITS,
get_canvas_view()->get_canvas()->rend_desc()
);
}
void set_skel_bone_width(Distance x){return skel_bone_width_dist.set_value(x);}
void set_skel_bone_width(Distance x){ skel_bone_width_dist.set_value(x);}

Real get_skel_deform_bone_width() const {
return skel_deform_bone_width_dist.get_value().get(
Distance::SYSTEM_UNITS,
get_canvas_view()->get_canvas()->rend_desc()
);
}
void set_skel_deform_bone_width(Distance x){return skel_deform_bone_width_dist.set_value(x);}
void set_skel_deform_bone_width(Distance x){ skel_deform_bone_width_dist.set_value(x);}

Real get_bone_width() const{
if(skel_bone_width_dist.is_visible()){
Expand Down

0 comments on commit 3e01de7

Please sign in to comment.