diff options
author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-07 12:44:53 +0000 |
---|---|---|
committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-07 12:44:53 +0000 |
commit | abd783434a6148937c6cc64dc8435c43b120db52 (patch) | |
tree | 7f707e43a7e9ed527c4b725d6d2f39cbafdbbbfd /ext/win32ole/win32ole_param.c | |
parent | aabdfeaca31f8acdeb75f42b60b8cbc5b5e84e13 (diff) | |
download | ruby-abd783434a6148937c6cc64dc8435c43b120db52.tar.gz |
ext/win32ole/win32ole_method.c: refactoring. add
olemethod_data_get_struct to wrap Data_Get_Struct.
ext/win32ole/win32ole_method.h: ditto.
ext/win32ole/win32ole_param.c (oleparam_ole_param):
call olemethod_data_get_struct instead of Data_Get_Struct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole/win32ole_param.c')
-rw-r--r-- | ext/win32ole/win32ole_param.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/win32ole/win32ole_param.c b/ext/win32ole/win32ole_param.c index c268a85ca6..6e77735f47 100644 --- a/ext/win32ole/win32ole_param.c +++ b/ext/win32ole/win32ole_param.c @@ -124,8 +124,7 @@ oleparam_ole_param_from_index(VALUE self, ITypeInfo *pTypeInfo, UINT method_inde static VALUE oleparam_ole_param(VALUE self, VALUE olemethod, int n) { - struct olemethoddata *pmethod; - Data_Get_Struct(olemethod, struct olemethoddata, pmethod); + struct olemethoddata *pmethod = olemethod_data_get_struct(olemethod); return oleparam_ole_param_from_index(self, pmethod->pTypeInfo, pmethod->index, n); } |