diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-25 16:05:19 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-25 16:05:19 +0300 |
commit | 2464395b6d74ecad71e10c990f30ca20ef73b68c (patch) | |
tree | 57ba7c4c7b56b8d9794d059d6eea28d40f7ed309 /source/blender/depsgraph | |
parent | 0b9a65b2ae218e3b3f8f56d22673c58255b8a92f (diff) |
Depsgraph: Avoid unnecessary char*/string conversion when creating RNAPathKey
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_build.h | 2 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_build_relations.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_build.h b/source/blender/depsgraph/intern/depsgraph_build.h index 93fa9e4b0d8..4088a3289ef 100644 --- a/source/blender/depsgraph/intern/depsgraph_build.h +++ b/source/blender/depsgraph/intern/depsgraph_build.h @@ -220,7 +220,7 @@ struct OperationKey struct RNAPathKey { // Note: see depsgraph_build.cpp for implementation - RNAPathKey(ID *id, const string &path); + RNAPathKey(ID *id, const char *path); RNAPathKey(ID *id, const PointerRNA &ptr, PropertyRNA *prop) : id(id), ptr(ptr), prop(prop) diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cc b/source/blender/depsgraph/intern/depsgraph_build_relations.cc index a3319e7bb15..5d51bfe750d 100644 --- a/source/blender/depsgraph/intern/depsgraph_build_relations.cc +++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cc @@ -108,7 +108,7 @@ extern "C" { /* **** General purpose functions **** */ -RNAPathKey::RNAPathKey(ID *id, const string &path) : +RNAPathKey::RNAPathKey(ID *id, const char *path) : id(id) { /* create ID pointer for root of path lookup */ @@ -116,7 +116,7 @@ RNAPathKey::RNAPathKey(ID *id, const string &path) : RNA_id_pointer_create(id, &id_ptr); /* try to resolve path... */ int index; - if (!RNA_path_resolve_full(&id_ptr, path.c_str(), &this->ptr, &this->prop, &index)) { + if (!RNA_path_resolve_full(&id_ptr, path, &this->ptr, &this->prop, &index)) { this->ptr = PointerRNA_NULL; this->prop = NULL; } |