diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/graph/node_enum.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/cycles/graph/node_enum.h b/intern/cycles/graph/node_enum.h index b3a55efb327..6c8bfed7ec8 100644 --- a/intern/cycles/graph/node_enum.h +++ b/intern/cycles/graph/node_enum.h @@ -19,8 +19,10 @@ struct NodeEnum { } void insert(const char *x, int y) { - left[ustring(x)] = y; - right[y] = ustring(x); + ustring ustr_x(x); + + left[ustr_x] = y; + right[y] = ustr_x; } bool exists(ustring x) const |