diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-07-25 07:23:09 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2015-07-20 00:17:50 +0300 |
commit | be980c4ee46ca8b9eb8e0492cf8dd06ec8426348 (patch) | |
tree | 9d4c66445c64755003f70b01df1430d51cbb7245 /source/blender/freestyle/intern/scene_graph | |
parent | e58d788340a442b1584abbb36d3d2a01fda7f810 (diff) |
Freestyle: minor optimization for space by using a pointer to a const char array instead of std::string.
Diffstat (limited to 'source/blender/freestyle/intern/scene_graph')
-rw-r--r-- | source/blender/freestyle/intern/scene_graph/Rep.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/scene_graph/Rep.h b/source/blender/freestyle/intern/scene_graph/Rep.h index 88ee0d2a801..9917af37aa4 100644 --- a/source/blender/freestyle/intern/scene_graph/Rep.h +++ b/source/blender/freestyle/intern/scene_graph/Rep.h @@ -127,7 +127,7 @@ public: return _Id; } - inline const string& getName() const + inline const char *getName() const { return _Name; } @@ -148,7 +148,7 @@ public: _Id = id; } - inline void setName(const string& name) + inline void setName(const char *name) { _Name = name; } @@ -161,7 +161,7 @@ public: private: BBox<Vec3r> _BBox; Id _Id; - string _Name; + const char *_Name; FrsMaterial *_FrsMaterial; }; |