mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 07:45:59 +08:00
Use std::string instead of const char* for GetKey function
This commit is contained in:
parent
6cd8fdb2c8
commit
01d54380ac
@ -3000,7 +3000,9 @@ json_const_iterator ObjectEnd(const json &o) {
|
||||
#endif
|
||||
}
|
||||
|
||||
const char *GetKey(json_const_iterator &it) {
|
||||
// Making this a const char* results in a pointer to a temporary when
|
||||
// TINYGLTF_USE_RAPIDJSON is off.
|
||||
std::string GetKey(json_const_iterator &it) {
|
||||
#ifdef TINYGLTF_USE_RAPIDJSON
|
||||
return it->name.GetString();
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user