aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/native/TexturePacker/src/DecoderManager.cpp
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2023-04-13 15:29:27 -0700
committerLukas Rusak <lorusak@gmail.com>2023-04-23 21:03:36 -0700
commit4659959b1a1f7d3649e28753546718dc001b1a2d (patch)
tree25a347851ea5bf68b7180d77fb68ef5efc8ef99e /tools/depends/native/TexturePacker/src/DecoderManager.cpp
parent76cf99cb58345326e2cc70233c12f0233c807775 (diff)
TexturePacker: IDecoder: simplify extension handling
Signed-off-by: Lukas Rusak <lorusak@gmail.com>
Diffstat (limited to 'tools/depends/native/TexturePacker/src/DecoderManager.cpp')
-rw-r--r--tools/depends/native/TexturePacker/src/DecoderManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/depends/native/TexturePacker/src/DecoderManager.cpp b/tools/depends/native/TexturePacker/src/DecoderManager.cpp
index 1b53b0ff11..d6a919f85d 100644
--- a/tools/depends/native/TexturePacker/src/DecoderManager.cpp
+++ b/tools/depends/native/TexturePacker/src/DecoderManager.cpp
@@ -41,7 +41,7 @@ bool DecoderManager::IsSupportedGraphicsFile(std::string_view filename)
for (const auto& decoder : m_decoders)
{
- const std::vector<std::string> extensions = decoder->GetSupportedExtensions();
+ const std::vector<std::string>& extensions = decoder->GetSupportedExtensions();
for (const auto& extension : extensions)
{
if (std::string::npos != filename.rfind(extension, filename.length() - extension.length()))