aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/native/TexturePacker/src
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2019-09-16 19:55:40 +0200
committerRechi <Rechi@users.noreply.github.com>2019-09-16 19:55:40 +0200
commit8b9ef63a643bb4b79c256e4e1f127ca94a49229c (patch)
tree15d5c5c78d0757d50acb6311811e2b0c73fd3dcf /tools/depends/native/TexturePacker/src
parentf5b3bf12627716cd0a7525fbdd494e2b9beae78f (diff)
[modernize] use-emplace
Diffstat (limited to 'tools/depends/native/TexturePacker/src')
-rw-r--r--tools/depends/native/TexturePacker/src/decoder/GIFDecoder.cpp2
-rw-r--r--tools/depends/native/TexturePacker/src/decoder/JPGDecoder.cpp4
-rw-r--r--tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/tools/depends/native/TexturePacker/src/decoder/GIFDecoder.cpp b/tools/depends/native/TexturePacker/src/decoder/GIFDecoder.cpp
index 2966564904..3ddb6a575a 100644
--- a/tools/depends/native/TexturePacker/src/decoder/GIFDecoder.cpp
+++ b/tools/depends/native/TexturePacker/src/decoder/GIFDecoder.cpp
@@ -86,5 +86,5 @@ void GIFDecoder::gifDestroyFN(void* user)
void GIFDecoder::FillSupportedExtensions()
{
- m_supportedExtensions.push_back(".gif");
+ m_supportedExtensions.emplace_back(".gif");
}
diff --git a/tools/depends/native/TexturePacker/src/decoder/JPGDecoder.cpp b/tools/depends/native/TexturePacker/src/decoder/JPGDecoder.cpp
index 2ceab90c45..c2d96a8fa9 100644
--- a/tools/depends/native/TexturePacker/src/decoder/JPGDecoder.cpp
+++ b/tools/depends/native/TexturePacker/src/decoder/JPGDecoder.cpp
@@ -135,6 +135,6 @@ void JPGDecoder::FreeDecodedFrames(DecodedFrames &frames)
void JPGDecoder::FillSupportedExtensions()
{
- m_supportedExtensions.push_back(".jpg");
- m_supportedExtensions.push_back(".jpeg");
+ m_supportedExtensions.emplace_back(".jpg");
+ m_supportedExtensions.emplace_back(".jpeg");
}
diff --git a/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp b/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp
index b4d3a35e97..b12e55f426 100644
--- a/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp
+++ b/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp
@@ -243,5 +243,5 @@ void PNGDecoder::FreeDecodedFrames(DecodedFrames &frames)
void PNGDecoder::FillSupportedExtensions()
{
- m_supportedExtensions.push_back(".png");
+ m_supportedExtensions.emplace_back(".png");
}