summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-20 15:05:08 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-20 15:20:44 -0800
commit8e44bc31fd60a51906123685976609fc2adf4382 (patch)
tree76d84aa822384bdf4c773ba0a8e9b53ee6f94168 /src
parentf032a4a7b14fc8c60b1a07d44c38fdff573b3baa (diff)
downloadbinaryen-8e44bc31fd60a51906123685976609fc2adf4382.tar.gz
binaryen-8e44bc31fd60a51906123685976609fc2adf4382.tar.bz2
binaryen-8e44bc31fd60a51906123685976609fc2adf4382.zip
only the IString constructor for Name can avoid memory copying
Diffstat (limited to 'src')
-rw-r--r--src/wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index b36d4f3ed..5a8d57fd1 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -69,7 +69,7 @@ namespace wasm {
struct Name : public cashew::IString {
Name() : cashew::IString() {}
- Name(const char *str) : cashew::IString(str) {}
+ Name(const char *str) : cashew::IString(str, false) {}
Name(cashew::IString str) : cashew::IString(str) {}
Name(const std::string &str) : cashew::IString(str.c_str(), false) {}