diff options
| author | qarmin <mikrutrafal54@gmail.com> | 2019-07-10 11:54:12 +0200 |
|---|---|---|
| committer | qarmin <mikrutrafal54@gmail.com> | 2019-07-10 11:54:12 +0200 |
| commit | 01cc7a996babc9173a393bf3dae080dc14a277c9 (patch) | |
| tree | cc57520aebe056553aeb8999ef90f9c71cace392 /scene/gui/spin_box.cpp | |
| parent | 3bfffcc568d87342e867f95c35a4a19e09072189 (diff) | |
| download | redot-engine-01cc7a996babc9173a393bf3dae080dc14a277c9.tar.gz | |
Use reference to constant in functions
Diffstat (limited to 'scene/gui/spin_box.cpp')
| -rw-r--r-- | scene/gui/spin_box.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index e778af3ceb..279253889c 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -173,7 +173,7 @@ void SpinBox::_line_edit_focus_exit() { _text_entered(line_edit->get_text()); } -inline void SpinBox::_adjust_width_for_icon(const Ref<Texture> icon) { +inline void SpinBox::_adjust_width_for_icon(const Ref<Texture> &icon) { int w = icon->get_width(); if (w != last_w) { |
