aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/native/TexturePacker/src/DecoderManager.cpp
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2023-04-13 10:23:49 -0700
committerLukas Rusak <lorusak@gmail.com>2023-04-14 20:45:47 -0700
commit88f0315800817a814c6fb3eaa345dd74962e5137 (patch)
tree1c1475de85cc11043fc169c7cb9c5e9f65d33d08 /tools/depends/native/TexturePacker/src/DecoderManager.cpp
parentcb2380a87aeab9dca4ef2be1ed22e1a8f64a8381 (diff)
TexturePacker: DecoderManager remove use of c_str()
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.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/depends/native/TexturePacker/src/DecoderManager.cpp b/tools/depends/native/TexturePacker/src/DecoderManager.cpp
index 2b1a85ee09..b605e0e7fc 100644
--- a/tools/depends/native/TexturePacker/src/DecoderManager.cpp
+++ b/tools/depends/native/TexturePacker/src/DecoderManager.cpp
@@ -45,9 +45,7 @@ bool DecoderManager::IsSupportedGraphicsFile(char *strFileName)
const std::vector<std::string> extensions = decoder->GetSupportedExtensions();
for (const auto& extension : extensions)
{
- int extLen = extension.length();
- if (std::string::npos !=
- filename.rfind(extension.c_str(), filename.length() - extLen, extLen))
+ if (std::string::npos != filename.rfind(extension, filename.length() - extension.length()))
{
return true;
}