@@ -162,8 +162,7 @@ private void WrapConstructor(Method method, string wrapper, string @params)
162
162
bool isAbstract = ( ( Class ) method . Namespace ) . IsAbstract ;
163
163
if ( method . Access == AccessSpecifier . Protected || isAbstract )
164
164
{
165
- Write ( $@ "{{ ::new ({ Helpers . InstanceField } ) {
166
- wrapper } { method . Namespace . Name } ({ @params } ); }}" ) ;
165
+ Write ( $@ "{{ ::new ({ Helpers . InstanceField } ) { wrapper } { method . Namespace . Name } ({ @params } ); }}") ;
167
166
WriteLine ( ! isAbstract ? " };" : string . Empty ) ;
168
167
}
169
168
else
@@ -210,12 +209,10 @@ private void WrapDestructor(Method method, string wrapper)
210
209
{
211
210
string @class = wrapper + method . Namespace . Name ;
212
211
WriteLine ( $ "() {{ this->~{ @class } (); }} }};") ;
213
- Write ( $@ "extern ""C"" { GetExporting ( ) } void { wrapper } ({
214
- @class } * { instance } ) {{ { instance } ->{ wrapper } Protected" ) ;
212
+ Write ( $@ "extern ""C"" { GetExporting ( ) } void { wrapper } ({ @class } * { instance } ) {{ { instance } ->{ wrapper } Protected") ;
215
213
}
216
214
else
217
- Write ( $@ "({ $ "{ @namespace } *{ instance } "} ) {{ {
218
- instance } ->~{ method . Namespace . Name } " ) ;
215
+ Write ( $@ "({ $ "{ @namespace } *{ instance } "} ) {{ { instance } ->~{ method . Namespace . Name } ") ;
219
216
WriteLine ( "(); }" ) ;
220
217
}
221
218
@@ -238,8 +235,7 @@ private void TakeFunctionAddress(Function function, string wrapper)
238
235
239
236
var method = function as Method ;
240
237
if ( function . Namespace . Access == AccessSpecifier . Protected )
241
- Write ( $@ "class { wrapper } { function . Namespace . Name } : public {
242
- function . Namespace . Namespace . Visit ( cppTypePrinter ) } {{ " ) ;
238
+ Write ( $@ "class { wrapper } { function . Namespace . Name } : public { function . Namespace . Namespace . Visit ( cppTypePrinter ) } {{ ") ;
243
239
244
240
string variable = $@ "({ ( method ? . IsStatic == false ?
245
241
( @namespace + "::" ) : string . Empty ) } *{ wrapper } ){ signature } " ;
0 commit comments