Skip to content

Commit

Permalink
Revert setter's second param as constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ng420 committed Jul 30, 2016
1 parent 6e8ba0b commit 81b00c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Modules/hhvm.cxx
Expand Up @@ -956,7 +956,7 @@ class HHVM : public Language {

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);
Expand Down

0 comments on commit 81b00c7

Please sign in to comment.