summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/patches/0005-assimp-Avoid-unneeded-copy-ctor-calls-when-calling-getAiType.patch
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2017-05-24 12:09:44 +0100
committerSean Harmer <sean.harmer@kdab.com>2017-05-24 12:10:02 +0100
commit77d294db076dac19e8b549b445ffede9f7260c84 (patch)
tree828ee7a6862ec5c0bd24f97cb540625a2c647376 /src/3rdparty/patches/0005-assimp-Avoid-unneeded-copy-ctor-calls-when-calling-getAiType.patch
parent59f8fec8a41606b3185fe3a4e276978e3e1ed5ef (diff)
parent939b9b4b7591e8a421cf048a0a84ed3e75d81d21 (diff)
Merge branch 'dev' into wip/animationwip/animation
Diffstat (limited to 'src/3rdparty/patches/0005-assimp-Avoid-unneeded-copy-ctor-calls-when-calling-getAiType.patch')
-rw-r--r--src/3rdparty/patches/0005-assimp-Avoid-unneeded-copy-ctor-calls-when-calling-getAiType.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/3rdparty/patches/0005-assimp-Avoid-unneeded-copy-ctor-calls-when-calling-getAiType.patch b/src/3rdparty/patches/0005-assimp-Avoid-unneeded-copy-ctor-calls-when-calling-getAiType.patch
new file mode 100644
index 000000000..df716b065
--- /dev/null
+++ b/src/3rdparty/patches/0005-assimp-Avoid-unneeded-copy-ctor-calls-when-calling-getAiType.patch
@@ -0,0 +1,31 @@
+From 2794f2041c8c7616c91e443ea74564e4a5d07a2e Mon Sep 17 00:00:00 2001
+From: Sergio Martins <sergio.martins@kdab.com>
+Date: Sun, 29 Jan 2017 17:37:53 +0000
+Subject: [PATCH] Avoid unneeded copy-ctor calls when calling getAiType
+
+Specially for aiString, which does a memcpy.
+Patch already committed upstream.
+
+Change-Id: I9497e4fcc11a60a4bf434fcac4b76f1467867186
+---
+ src/3rdparty/assimp/include/assimp/metadata.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/3rdparty/assimp/include/assimp/metadata.h b/src/3rdparty/assimp/include/assimp/metadata.h
+index 16809a511..db2f1873f 100644
+--- a/src/3rdparty/assimp/include/assimp/metadata.h
++++ b/src/3rdparty/assimp/include/assimp/metadata.h
+@@ -106,8 +106,8 @@ inline aiMetadataType GetAiType( bool ) { return AI_BOOL; }
+ inline aiMetadataType GetAiType( int ) { return AI_INT; }
+ inline aiMetadataType GetAiType( uint64_t ) { return AI_UINT64; }
+ inline aiMetadataType GetAiType( float ) { return AI_FLOAT; }
+-inline aiMetadataType GetAiType( aiString ) { return AI_AISTRING; }
+-inline aiMetadataType GetAiType( aiVector3D ) { return AI_AIVECTOR3D; }
++inline aiMetadataType GetAiType( const aiString & ) { return AI_AISTRING; }
++inline aiMetadataType GetAiType( const aiVector3D & ) { return AI_AIVECTOR3D; }
+
+
+
+--
+2.11.0
+