From ad9386a4a1cf2a248f7bbd45f543a7448db15267 Mon Sep 17 00:00:00 2001 From: Richard Geldreich Date: Wed, 26 Apr 2023 23:17:50 -0400 Subject: [PATCH] Minor fix to two accessors so they return refs vs. copies. --- transcoder/basisu_transcoder_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transcoder/basisu_transcoder_internal.h b/transcoder/basisu_transcoder_internal.h index 0505df6e..aa3bee35 100644 --- a/transcoder/basisu_transcoder_internal.h +++ b/transcoder/basisu_transcoder_internal.h @@ -264,8 +264,8 @@ namespace basist } const basisu::uint8_vec &get_code_sizes() const { return m_code_sizes; } - const basisu::int_vec get_lookup() const { return m_lookup; } - const basisu::int16_vec get_tree() const { return m_tree; } + const basisu::int_vec &get_lookup() const { return m_lookup; } + const basisu::int16_vec &get_tree() const { return m_tree; } bool is_valid() const { return m_code_sizes.size() > 0; }