Alembic: more const-ness

This commit is contained in:
Sybren A. Stüvel 2017-02-21 15:00:27 +01:00
parent 02d6df80aa
commit 85672d29f2
2 changed files with 6 additions and 6 deletions

@ -41,7 +41,7 @@ extern "C" {
#include "PIL_time.h"
}
std::string get_id_name(Object *ob)
std::string get_id_name(const Object * const ob)
{
if (!ob) {
return "";
@ -50,7 +50,7 @@ std::string get_id_name(Object *ob)
return get_id_name(&ob->id);
}
std::string get_id_name(ID *id)
std::string get_id_name(const ID * const id)
{
std::string name(id->name + 2);
std::replace(name.begin(), name.end(), ' ', '_');
@ -60,7 +60,7 @@ std::string get_id_name(ID *id)
return name;
}
std::string get_object_dag_path_name(Object *ob, Object *dupli_parent)
std::string get_object_dag_path_name(const Object * const ob, Object *dupli_parent)
{
std::string name = get_id_name(ob);

@ -44,9 +44,9 @@ struct ImportSettings;
struct ID;
struct Object;
std::string get_id_name(ID *id);
std::string get_id_name(Object *ob);
std::string get_object_dag_path_name(Object *ob, Object *dupli_parent);
std::string get_id_name(const ID * const id);
std::string get_id_name(const Object * const ob);
std::string get_object_dag_path_name(const Object * const ob, Object *dupli_parent);
bool object_selected(Object *ob);
bool parent_selected(Object *ob);