diff options
author | Nishant Gupta <nish.gupta01@gmail.com> | 2016-07-30 18:46:42 +0530 |
---|---|---|
committer | Nishant Gupta <nish.gupta01@gmail.com> | 2016-07-30 18:46:42 +0530 |
commit | 81b00c7695bd8dc43a682eaa4a280bce27aa6714 (patch) | |
tree | 6a84ad4fae10307b564935bde5d160b12e909123 | |
parent | 6e8ba0be53a84373f04e05b18e96a13d8bfeb2de (diff) | |
download | swig-81b00c7695bd8dc43a682eaa4a280bce27aa6714.tar.gz |
Revert setter's second param as constant
-rw-r--r-- | Source/Modules/hhvm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Modules/hhvm.cxx b/Source/Modules/hhvm.cxx index 7a21c5be5..eb2c659b9 100644 --- a/Source/Modules/hhvm.cxx +++ b/Source/Modules/hhvm.cxx @@ -956,7 +956,7 @@ public: if ((wname = Getattr(class_set_vars, varname))) { String *accname = NewStringf("SWIG_set_%s_%s", classname, varname); - Printf(f_link, "static void %s(const Object& this_, Variant& value) {\n", accname); + Printf(f_link, "static void %s(const Object& this_, const Variant& value) {\n", accname); Printf(f_link, " auto data = Object(this_);\n", wclassname); if ((tm = Swig_typemap_lookup("variant_out", n, varname, 0))) { Printf(f_link, " %s(data, value.%s());\n", wname, tm); |