diff options
author | fclem <foucault.clem@gmail.com> | 2018-08-09 16:27:19 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-08-09 16:51:23 +0300 |
commit | a241286859114c6091a86186aa680d638917a05a (patch) | |
tree | 58881645cc3e86d661fd53c6025ac993c87c2fba /intern/cycles/util/util_string.cpp | |
parent | 3aee3bbac7317d205b611b9aa713791f17104556 (diff) |
Cycles: Util, add to_string() with some helper
Currently unused, but will allow to convert unknown
argument type to a string for reporting and such.
Diffstat (limited to 'intern/cycles/util/util_string.cpp')
-rw-r--r-- | intern/cycles/util/util_string.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/util/util_string.cpp b/intern/cycles/util/util_string.cpp index 995f5d3df27..47119e90a45 100644 --- a/intern/cycles/util/util_string.cpp +++ b/intern/cycles/util/util_string.cpp @@ -168,6 +168,11 @@ string string_from_bool(bool var) return "False"; } +string to_string(const char *str) +{ + return string(str); +} + /* Wide char strings helpers for Windows. */ #ifdef _WIN32 |