summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishant Gupta <nish.gupta01@gmail.com>2016-08-04 14:19:19 +0530
committerNishant Gupta <nish.gupta01@gmail.com>2016-08-04 14:19:19 +0530
commited6bfb6b659bd8f90cf5fcb6fda1de255deb6d2b (patch)
tree016611626521a0f5c4690f460a35135454f57af9
parent545da423aef1d9711b24c9a02b02f6f02a6a09bd (diff)
downloadswig-ed6bfb6b659bd8f90cf5fcb6fda1de255deb6d2b.tar.gz
Fix a static issue
-rw-r--r--Source/Modules/hhvm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Modules/hhvm.cxx b/Source/Modules/hhvm.cxx
index f6c9ed12f..3f5543f1a 100644
--- a/Source/Modules/hhvm.cxx
+++ b/Source/Modules/hhvm.cxx
@@ -343,7 +343,7 @@ public:
bool is_member = Getattr(n, "ismember");
bool is_constructor = (Cmp(Getattr(n, "nodeType"), "constructor") == 0);
bool is_destructor = (Cmp(Getattr(n, "nodeType"), "destructor") == 0);
- bool is_static = (Cmp(Getattr(n, "storage"), "static") == 0);
+ bool is_static = (Cmp(Getattr(n, "storage"), "static") == 0) && in_class;
if (is_constructor || is_destructor) {
Printf(f_link, "void ");