From a1fbc8008c2ede6987d0fbe015a469d1993527b1 Mon Sep 17 00:00:00 2001 From: Luigi Ballabio Date: Mon, 15 Jul 2024 17:54:35 +0200 Subject: [PATCH] Remove unneeded syntax --- SWIG/inflation.i | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/SWIG/inflation.i b/SWIG/inflation.i index d81e92443..977fcd5f3 100644 --- a/SWIG/inflation.i +++ b/SWIG/inflation.i @@ -120,14 +120,13 @@ class ZeroInflationTermStructure : public InflationTermStructure { // inflation indexes -%fragment("zeroinflationindex", "header") { +%{ using QuantLib::Region; using QuantLib::CustomRegion; using QuantLib::InflationIndex; using QuantLib::ZeroInflationIndex; using QuantLib::YoYInflationIndex; -} -%fragment("zeroinflationindex"); +%} class Region { public: @@ -226,10 +225,9 @@ class Name : public ZeroInflationIndex { %enddef %define export_yii_instance(Name) -%fragment("Name","header") { +%{ using QuantLib::Name; -} -%fragment("Name"); +%} %shared_ptr(Name) class Name : public YoYInflationIndex { public: