122219-122218 Big parameter passed by value

pull/1007/head
wise86Android 2016-09-19 22:23:13 +02:00
parent 99c34961b9
commit 96fab1cf55
3 changed files with 9 additions and 9 deletions

View File

@ -513,7 +513,7 @@ std::string XFileExporter::toXFileString(aiString &name)
return str;
}
void XFileExporter::writePath(aiString path)
void XFileExporter::writePath(const aiString &path)
{
std::string str = std::string(path.C_Str());
BaseImporter::ConvertUTF8toISO8859_1(str);

View File

@ -107,7 +107,7 @@ protected:
const ExportProperties* mProperties;
/// write a path
void writePath(aiString path);
void writePath(const aiString &path);
/// The IOSystem for output
IOSystem* mIOSystem;

View File

@ -105,13 +105,13 @@ struct aiMetadataEntry
* Helper functions to get the aiType enum entry for a type
*/
// -------------------------------------------------------------------------------
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( double ) { return AI_DOUBLE; }
inline aiMetadataType GetAiType( aiString ) { return AI_AISTRING; }
inline aiMetadataType GetAiType( aiVector3D ) { return AI_AIVECTOR3D; }
inline aiMetadataType GetAiType( const bool& ) { return AI_BOOL; }
inline aiMetadataType GetAiType( const int& ) { return AI_INT; }
inline aiMetadataType GetAiType( const uint64_t& ) { return AI_UINT64; }
inline aiMetadataType GetAiType( const float& ) { return AI_FLOAT; }
inline aiMetadataType GetAiType( const double& ) { return AI_DOUBLE; }
inline aiMetadataType GetAiType( const aiString& ) { return AI_AISTRING; }
inline aiMetadataType GetAiType( const aiVector3D& ) { return AI_AIVECTOR3D; }