diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-08-13 15:17:35 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-08-14 21:40:04 +0300 |
commit | 0f7a5c4070b7fd800e60ba0bb5613bcd21cfeb2f (patch) | |
tree | 3588b4f191ec4b62d246a1d65a1c7f38964647a7 /source/blender | |
parent | 89a2cb9297379bd952033bd4f536a38c47fb760e (diff) |
DRW: Debug: Fix `print` template
It was impossible to print literals like `drw_print(5)`.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/draw_debug.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/intern/draw_debug.hh b/source/blender/draw/intern/draw_debug.hh index 730b69ed954..c83936bf1af 100644 --- a/source/blender/draw/intern/draw_debug.hh +++ b/source/blender/draw/intern/draw_debug.hh @@ -113,17 +113,17 @@ class DebugDraw { print_no_endl(str, args...); print_newline(); } - template<typename T> void print(const T &&value) + template<typename T> void print(const T &value) { print_value(value); print_newline(); } - template<typename T> void print_hex(const T &&value) + template<typename T> void print_hex(const T &value) { print_value_hex(value); print_newline(); } - template<typename T> void print_binary(const T &&value) + template<typename T> void print_binary(const T &value) { print_value_binary(value); print_newline(); |