Skip to content

Commit d37ff13

Browse files
authored
Merge pull request #22 from eltoder/patch-1
Remove constructor bodies in ibor and overnight indexes
2 parents 4a8d585 + ab3500f commit d37ff13

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

QuantExt-SWIG/SWIG/qle_indexes.i

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,7 @@ class Name : public IborIndex {
271271
public:
272272
Name(const Period& tenor,
273273
const Handle<YieldTermStructure>& h =
274-
Handle<YieldTermStructure>()) {
275-
return new Name(new Name(tenor,h));
276-
}
274+
Handle<YieldTermStructure>());
277275
};
278276
%enddef
279277

@@ -285,9 +283,7 @@ using QuantExt::Name;
285283
class Name : public OvernightIndex {
286284
public:
287285
Name(const Handle<YieldTermStructure>& h =
288-
Handle<YieldTermStructure>()) {
289-
return new Name(new Name(h));
290-
}
286+
Handle<YieldTermStructure>());
291287
};
292288
%enddef
293289

0 commit comments

Comments
 (0)